Commit graph

249 commits

Author SHA1 Message Date
Laura Hausmann
46462a7736
[backend/database] Set database connection application name 2025-03-13 18:39:53 +01:00
Laura Hausmann
7594c652f5
[backend/api] Add report endpoints (ISH-116) 2025-03-11 20:40:23 +01:00
Laura Hausmann
8bbb5c1f98
[backend/federation] Handle incoming ASFlag activities (ISH-116) 2025-03-11 00:51:10 +01:00
Laura Hausmann
72c21ce51c
[backend/database] Move the remaining migrations into their respective versioned folders 2025-03-09 17:21:12 +01:00
Laura Hausmann
65d6edf799
[backend/database] Fix slow AddUserLastNoteAdd migration
This change ensures that the migration doesn't have to read every note in the database, but only up to one per known user.
2025-03-09 02:56:00 +01:00
Kopper
5d27233d08
[backend/masto-client] Expose AccountEntity.last_status_at
For performance reasons (it's set on the same query as the one that
increments the user notes counter) this does not take renotes into
account
2025-03-07 21:22:48 +01:00
Laura Hausmann
0442f676e1
[backend/database] [frontend] [shared] Rename emoji aliases to tags (ISH-717) 2025-03-04 23:28:59 +01:00
Laura Hausmann
88dee6b410
[backend/api] Replace IEntity with IIdentifiable, move EntityWrapper<T> to shared project 2025-02-18 21:47:33 +01:00
Laura Hausmann
16d62f6c33
[backend/database] Fix emoji type migration for emoji with multiple corresponding drive_file entries 2025-02-17 22:16:58 +01:00
Laura Hausmann
7c93c5591a
[backend/core] Populate & render emoji media type if available 2025-02-17 20:31:41 +01:00
Laura Hausmann
a143ac8b50
[backend/database] Fixup empty string emoji alias entries 2025-02-17 19:44:20 +01:00
Laura Hausmann
e5c2edf8cb
[backend/api] Fix unpaginated remote emoji lookup 2025-02-06 19:31:08 +01:00
pancakes
98611179ea
[backend/database] Recreate Pronouns column in UserProfile with jsonb 2025-02-05 18:10:41 +01:00
pancakes
664fb73ebb
Revert "[backend/database] Create Pronouns column in UserProfile"
This reverts commit 5d51131bb5f6e917d847d63be65272be53e53ce8.
2025-02-05 18:10:41 +01:00
pancakes
6001ff960a
[backend/database] Create Pronouns column in UserProfile 2025-02-05 18:09:59 +01:00
pancakes
f35dc27f20
[backend/database] Add Rule table 2025-01-30 11:09:25 +01:00
Laura Hausmann
bdfd3a8d4e
[backend/database] Fix emoji unique index, update minimum postgres version to v15 2025-01-21 22:03:56 +01:00
Laura Hausmann
885aaad080
[backend/database] Fix typo 2025-01-09 12:44:42 +01:00
Laura Hausmann
113bd98b0e
[backend/drive] Proxy remote media by default 2025-01-09 12:36:34 +01:00
Kopper
6b1d84801e [backend] Implement infrastructure for outbox backfill 2025-01-07 01:42:15 +03:00
Laura Hausmann
729dfac6df
[backend] Fix build 2025-01-05 06:24:08 +01:00
Laura Hausmann
0df2d49560
[backend/api] [frontend/pages] Remove specified as an option for default renote visibility 2025-01-05 05:34:20 +01:00
Laura Hausmann
f1f79a3435
[backend/api] Add session management endpoints 2024-12-15 01:03:31 +01:00
Laura Hausmann
010dd2bb96
[backend/core] Fix CW edits not being processed correctly, replace CW line endings during note ingest 2024-12-15 00:34:29 +01:00
Laura Hausmann
2453e0f673
[backend/database] Normalize note text & user bio line endings 2024-12-15 00:22:31 +01:00
Kopper
149fae3363
[backend] address review 2024-12-13 22:19:31 +01:00
Kopper
1e1364e2bb
[backend/masto-client] Add feature flag for inline media 2024-12-13 22:19:31 +01:00
Kopper
b6953236c3
[backend/masto-client] Fix edits breaking inline media 2024-12-13 22:19:31 +01:00
Laura Hausmann
a76f70d030
[backend/database] Convert DatabaseContext to use LF newlines 2024-11-23 21:34:30 +01:00
Laura Hausmann
853f598bc4
[backend/razor] Add "top delayed" section to queue dashboard 2024-11-23 21:34:30 +01:00
Kopper
36d9a8cc49
[backend/federation] Context collection 2024-11-23 18:20:41 +01:00
Laura Hausmann
7dec2514da
[sln] Apply code style 2024-11-20 00:48:29 +01:00
Laura Hausmann
f252c1a85e
[backend] Code cleanup 2024-11-18 19:02:43 +01:00
Laura Hausmann
84b8553a40
[backend/database] Switch to in-model entity configuration 2024-11-18 19:02:43 +01:00
Laura Hausmann
107d9314a9
[backend/database] Fix design-time database updates 2024-11-18 19:02:41 +01:00
Laura Hausmann
b49be2f904
[backend/database] Fix efcore.pg v9 enum mapping 2024-11-18 19:02:41 +01:00
Laura Hausmann
c9b9a8e45b
[backend] Switch to TimeSpan extension method for easier code readability 2024-10-30 18:27:18 +01:00
Kopper
61bad29c54 [backend/database] Add warning to AddNoteThread migration that it may take a while 2024-10-25 07:13:03 +03:00
kopper
7173373330
[backend/federation] Improved reply backfill
Instead of backfilling every note we come across that has a reply
collection, only schedule a backfill job if someone wants to see the
replies (on GET MastoAPI /context, or Iceshrimp API /descendants)

Reply backfilling is also done on a ThreadIdOrId basis as opposed to the
previous way of backfilling individual notes. This allows us finer
grained control over the recursion and frees up the job queue, alongside
allowing for easier implementation of context collection backfill in the
future (by mapping each context collection to a thread)

---

Currently, note threads are implicit based on the "threadId" column of a
note, which can be null (where it's the same as the note's "id")

This commit turns note threads into an actual entity, and as a part of
that, makes "threadId" non-nullable (by specifically setting it to "id"
for those cases)

This is done to attach extra metadata to the entire thread, currently
just the time of when it was last backfilled, but more may be added in
the future (the context collection associated with this thread, for example)

---

The data format for backfill jobs have backwards-incompatibly changed
since the introduction of the feature. We can drop all old jobs without
causing too much trouble as they will be re-scheduled on demand

---

Signed-off-by: Laura Hausmann <laura@hausmann.dev>
2024-10-24 21:18:57 +02:00
Laura Hausmann
55530f482d
[backend/api] Add pagination data to note likes and note renotes responses 2024-10-24 18:20:48 +02:00
Laura Hausmann
f19a414b27
[backend/federation] Refactor UserResolver (ISH-548) 2024-10-24 01:48:09 +02:00
Laura Hausmann
bb276c57f3
[backend/database] Add job mutex column 2024-10-22 21:11:57 +02:00
Laura Hausmann
4f4a847621
[backend/database] Increase length of follow request activity id field to 512 characters
This should fix federation with brid.gy relays.
2024-10-20 22:05:57 +02:00
Laura Hausmann
3274259f12
[backend/database] Prevent alt text migration from printing the info message twice 2024-10-09 18:39:40 +02:00
kopper
8998cd2874
[backend] Also search in alt text 2024-10-09 18:31:16 +02:00
Laura Hausmann
a5a2c0b169
[backend/core] Add basic reject policies, along with a highly extensible system for rewrite policies (ISH-16) 2024-10-09 04:34:23 +02:00
pancakes
b3b2adb127 [backend] Add sensitive field to emojis 2024-10-04 00:36:38 +02:00
Laura Hausmann
9d1a21e2d9
[backend/razor] Move public preview to Blazor SSR (razor components) 2024-10-02 02:17:51 +02:00
Laura Hausmann
7662c28745
[backend/database] Canonicalize punycode host representations to lowercase 2024-10-02 01:16:25 +02:00
Laura Hausmann
df4eea5c0e
[backend/database] PushSubscription.Types should be a property, not a field
This fixes creating migrations failing with an extremely unhelpful error message when using .NET 9.0.
2024-09-28 02:09:11 +02:00