Laura Hausmann
5390990448
[backend/core] Add basic message rewrite policies (ISH-16)
2024-10-09 21:14:50 +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
Laura Hausmann
0962b07021
[backend/core] Catch errors in NoteService.ResolveNoteAsync
...
This fixes some inbox job failures, for example when a post quoting a deleted post is being ingested.
2024-10-06 14:04:06 +02:00
Laura Hausmann
13614c2201
[backend] Reformat code
2024-09-23 02:00:34 +02:00
Laura Hausmann
07ed0f5651
[backend/core] Enforce local-only for renotes & replies of local-only notes
2024-09-23 02:00:27 +02:00
Kopper
91aab7c8d6
[backend/federation] Limit the maximum number of replies to backfill per post
2024-09-18 18:27:14 +02:00
Kopper
7fd1f81d21
[backend/federation] Limit reply backfill to same instance by default
2024-09-18 18:27:14 +02:00
Kopper
48784690c1
[backend/federation] Do not queue backfill jobs that have reached their recursion limit
2024-09-18 18:27:14 +02:00
Kopper
83e830b5df
[backend/configuration] Add configuration for backfill of note replies
2024-09-15 02:05:18 +02:00
Kopper
d6a8282a18
[backend/federation] Try using the original collection object when possible
2024-09-15 01:49:42 +02:00
Kopper
deabdc4eec
[backend/federation] Update replies collections of edited notes
...
This is mainly so we can backfill older posts before the reply
collections were saved in the database.
2024-09-15 01:47:41 +02:00
Kopper
23adf8bce6
[backend/federation] Delay backfilling for new notes to allow them time to collect replies
2024-09-15 01:47:41 +02:00
Kopper
024de937d0
[backend/federation] Backfill replies
2024-09-15 01:47:41 +02:00
Kopper
ade4481ae9
[backend/federation] Attempt to make id optional for some object types
2024-09-15 01:47:41 +02:00
Kopper
8c1a635027
[backend/federation] Refactor collection iteration
...
Collection iteration is extracted into a seprate IAsyncEnumerable from
the currently only place where it happens. This is in preparation for
handling paginated collections.
2024-09-15 01:47:40 +02:00
Laura Hausmann
7627219322
[backend/federation] Discard note updates with nonsensical update stamp
2024-08-18 19:25:07 +02:00
Laura Hausmann
2f3408f3d7
[backend/federation] Implement quotes as object links (FEP-e232)
2024-08-18 17:54:44 +02:00
Laura Hausmann
093abe82b8
[backend/core] Also use the NoteService KeyedLocker when it's called from ActivityHandlerService
...
This fixes sporadic "Unique constraint violation" exceptions on the "IX_note_uri" index.
2024-08-18 00:22:09 +02:00
Laura Hausmann
8267bc06de
[backend] Code cleanup
2024-08-14 03:53:15 +02:00
Laura Hausmann
4f98fa8461
[backend/federation] Fix possibly unbounded UserResolver recursion
2024-08-14 03:44:14 +02:00
Laura Hausmann
c3eacb34c2
[backend/federation] Add support for hubzilla's hashtag formatting
...
A bit strange but here we are
2024-08-14 02:01:56 +02:00
Laura Hausmann
4d0ccf1e74
[backend/core] Don't queue poll expiry jobs when expiry is more than 1 year in the future
2024-07-23 20:19:33 +02:00
Laura Hausmann
1e8f1cb964
[backend/database] Migrate references to Note.ThreadId ?? Note.Id to Note.ThreadIdOrId
2024-07-14 22:06:29 +02:00
Laura Hausmann
5182d1bbbb
[backend/federation] Fixup hashtags in incoming notes (ISH-421)
2024-07-14 21:28:20 +02:00
Laura Hausmann
3ac63e1510
[backend/federation] Respect UserSettings.AlwaysMarkSensitive
2024-07-11 23:24:48 +02:00
Laura Hausmann
4a2ee992c2
[backend] Disable code formatting in some regions for better readability
2024-07-04 19:14:26 +02:00
Laura Hausmann
374d9d5ebf
[backend/api] Add note refetch endpoint (ISH-352)
2024-07-04 18:57:17 +02:00
Laura Hausmann
df3a7bdfe5
[backend] Apply formatting rules
2024-06-29 01:06:19 +02:00
Laura Hausmann
a253e83176
[backend/federation] Refactor ActivityRenderer
2024-06-21 14:28:29 +02:00
Laura Hausmann
24bde5ad29
[backend] Use User.IsLocalUser / .IsRemoteUser instead of null-checks where applicable (ISH-370)
2024-06-17 17:25:29 +02:00
Laura Hausmann
95592df2ca
[backend/core] Don't create reply notifications on note update
...
This prevents erroneous duplicate notifications from being created.
2024-06-16 23:36:39 +02:00
Laura Hausmann
a703b63876
[backend/core] Ignore poll options consisting only of whitespace
...
This fixes compatibility with certain mastodon clients that send an extra empty-string poll option.
2024-06-14 20:04:38 +02:00
Laura Hausmann
dc8511632b
[backend/core] Replace sync DB call with async equivalent
2024-06-10 19:42:06 +02:00
Laura Hausmann
dba4196655
[backend/core] Track poll votersCount for local & remote polls
2024-06-05 15:26:25 +02:00
Laura Hausmann
1ef5be8917
[backend/core] Correctly handle remote AP redirects to local notes
2024-06-04 19:39:07 +02:00
Laura Hausmann
bcdcce80c9
[backend/core] Set note.text to null if it's whitespace on note creation & update
2024-06-04 17:51:00 +02:00
Laura Hausmann
117443b802
[backend/core] Fix typo
2024-05-30 13:35:31 +02:00
Laura Hausmann
6fdc8b73f7
[backend/core] Improve resolution of notes with pending reply/renote targets on note create
...
This fixes missing metadata (reply/renote user id/host), as well as stale reply/renote counts for replies/renotes processed out of order.
2024-05-30 12:30:45 +02:00
Laura Hausmann
167fd5f0d6
[backend/api] Add renote endpoints (ISH-341)
2024-05-23 19:37:56 +02:00
Laura Hausmann
ea8ff6495c
[backend/core] Fix editing of polls with no recorded votes
2024-05-16 18:56:04 +02:00
Laura Hausmann
1fae913a32
[backend/federation] Fix acceptance of poll vote activities without publishedAt
2024-05-16 18:55:46 +02:00
Laura Hausmann
2519f382c5
[backend/federation] Include fully rendered renote target in rendered activity when renote user matches
2024-05-07 01:11:20 +02:00
Laura Hausmann
fe7d85fa91
[backend/core] Fix polls originating from masto-api
2024-05-06 23:40:47 +02:00
Laura Hausmann
b6304dc882
[backend/federation] Fix media being incorrectly classified as sensitive
...
Some AP implementations send an empty string as content warning when they mean no content warning, this is handled correctly by CreateNoteAsync and UpdateNoteAsync but wasn't respected in the attachment processing code paths. This commit resolves that issue.
2024-05-06 16:44:56 +02:00
Laura Hausmann
fee5296cd9
[backend/core] Check for blocked instance early on user & note creation
2024-05-02 20:31:37 +02:00
Laura Hausmann
d31860dbb3
[backend/core] Track renote/reply uri for notes where the target is inaccessible at time of ingestion (ISH-287)
2024-04-30 00:15:58 +02:00
Laura Hausmann
fd0d6b4fea
[backend/core] Disallow quoting of notes with specified visibility
2024-04-29 16:03:28 +02:00
Laura Hausmann
50cfc6df92
[backend/core] Limit renote visibility to the visibility of the original note (ISH-290)
2024-04-28 23:34:58 +02:00
Laura Hausmann
cf215b3d57
[backend/federation] Handle ASDelete activities of ASNote objects
...
Some implementations seem to send deletes of ASNote objects instead of ASTombstone objects.
2024-04-25 19:13:57 +02:00