Commit graph

12 commits

Author SHA1 Message Date
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
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
7662c28745
[backend/database] Canonicalize punycode host representations to lowercase 2024-10-02 01:16:25 +02:00
Laura Hausmann
df26db0585
[backend/federation] Add relay support (ISH-266) 2024-09-28 00:32:43 +02:00
Laura Hausmann
238b441560
[backend/database] Remove remote user reply notifications 2024-09-14 02:46:31 +02:00
Laura Hausmann
08621c72a0
[backend/database] Move pleroma migration into the beta4 directory 2024-09-13 18:32:30 +02:00