mirror of
1
Fork 0
gotosocial/internal/visibility
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
..
account.go [performance] overhaul struct (+ result) caching library for simplicity, performance and multiple-result lookups (#2535) 2024-01-19 12:57:29 +00:00
boostable.go [performance] refactoring + add fave / follow / request / visibility caching (#1607) 2023-03-28 14:03:14 +01:00
boostable_test.go [performance] refactoring + add fave / follow / request / visibility caching (#1607) 2023-03-28 14:03:14 +01:00
filter.go [performance] refactoring + add fave / follow / request / visibility caching (#1607) 2023-03-28 14:03:14 +01:00
filter_test.go [performance] refactoring + add fave / follow / request / visibility caching (#1607) 2023-03-28 14:03:14 +01:00
home_timeline.go [bugfix] parent status replied to status not dereferenced sometimes (#2587) 2024-01-31 13:29:47 +00:00
home_timeline_test.go [bugfix] Move follow.show_reblogs check further up to avoid showing unwanted reblogs in home timeline (#2234) 2023-09-29 10:39:35 +02:00
public_timeline.go [performance] overhaul struct (+ result) caching library for simplicity, performance and multiple-result lookups (#2535) 2024-01-19 12:57:29 +00:00
status.go [performance] overhaul struct (+ result) caching library for simplicity, performance and multiple-result lookups (#2535) 2024-01-19 12:57:29 +00:00
status_test.go [performance] refactoring + add fave / follow / request / visibility caching (#1607) 2023-03-28 14:03:14 +01:00
tag_timeline.go [feature] Hashtag federation (in/out), hashtag client API endpoints (#2032) 2023-07-31 15:47:35 +02:00