mirror of
1
Fork 0
gotosocial/internal/federation/federatingdb
kim 0f7a2024c3
[bugfix] parent status replied to status not dereferenced sometimes (#2587)
* much simplified DereferenceStatusAncestors(), also handles edge cases now

* perform status acceptibility check before handling even as forward

* don't further dereference ancestors if they're up to date

* call enrichStatusSafely() directly to ensure we get error messages

* change getStatusByURI() semantics to return error + old model on failed update, fix deref ancestor to check for staleness before refetch

* perform a nil-check on the status.Local variable, in case it hasn't been set on new status attempting refresh

* more consistently set returned parent status, don't check if updated

* only home-timeline statuses if explicitly visible AND not explicitly invisible!

* fix broken test now that status acceptibility checks happen on forwarded statuses
2024-01-31 13:29:47 +00:00
..
accept.go [feature] tentatively start adding polls support (#2249) 2023-10-04 13:09:42 +01:00
announce.go [chore] deinterface the typeutils.Converter and update to use state structure (#2217) 2023-09-23 18:44:11 +02:00
announce_test.go [performance] overhaul struct (+ result) caching library for simplicity, performance and multiple-result lookups (#2535) 2024-01-19 12:57:29 +00:00
create.go [bugfix] parent status replied to status not dereferenced sometimes (#2587) 2024-01-31 13:29:47 +00:00
create_test.go [bugfix] parent status replied to status not dereferenced sometimes (#2587) 2024-01-31 13:29:47 +00:00
db.go [feature] support canceling scheduled tasks, some federation API performance improvements (#2329) 2023-11-04 20:21:20 +00:00
delete.go [feature] List replies policy, refactor async workers (#2087) 2023-08-09 19:14:33 +02:00
exists.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
federatingdb_test.go [bugfix] process account delete side effects in serial, not in parallel (#2360) 2023-11-14 15:57:25 +01:00
followers.go [feature] add paging to AP following / followers endpoints (#2198) 2023-09-20 16:49:46 +01:00
followers_test.go [feature] Enable federation in/out of profile PropertyValue fields (#1722) 2023-05-09 11:16:10 +01:00
following.go [feature] add paging to AP following / followers endpoints (#2198) 2023-09-20 16:49:46 +01:00
following_test.go [feature] add paging to account follows, followers and follow requests endpoints (#2186) 2023-09-12 14:00:35 +01:00
get.go [chore] deinterface the typeutils.Converter and update to use state structure (#2217) 2023-09-23 18:44:11 +02:00
inbox.go [feature] add paging to account follows, followers and follow requests endpoints (#2186) 2023-09-12 14:00:35 +01:00
inbox_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
liked.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
lock.go [feature] add per-uri dereferencer locks (#2291) 2023-10-31 11:12:22 +00:00
outbox.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
owns.go [bugfix] Add proper constraints on status faves, dedupe (#1674) 2023-04-05 20:10:05 +02:00
reject.go [chore] chore rationalise http return codes for activitypub handlers (#2540) 2024-01-18 17:11:13 +01:00
reject_test.go [feature] List replies policy, refactor async workers (#2087) 2023-08-09 19:14:33 +02:00
undo.go [chore] chore rationalise http return codes for activitypub handlers (#2540) 2024-01-18 17:11:13 +01:00
update.go [feature] support canceling scheduled tasks, some federation API performance improvements (#2329) 2023-11-04 20:21:20 +00:00
util.go [bugfix] return 400 Bad Request on more cases of malformed AS data (#2399) 2023-11-30 16:22:34 +00:00