diff options
author | 2024-01-31 13:29:47 +0000 | |
---|---|---|
committer | 2024-01-31 13:29:47 +0000 | |
commit | 0f7a2024c37f045796dbf39eca284ad2f4858cb5 (patch) | |
tree | 2dc12a60e08a53f64d2bd4da2c88d8ed81d12766 /internal/processing/common/status.go | |
parent | update go-structr v0.2.0 => v0.3.0 to fix possible hash collision issues (#2586) (diff) | |
download | gotosocial-0f7a2024c37f045796dbf39eca284ad2f4858cb5.tar.xz |
[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
Diffstat (limited to 'internal/processing/common/status.go')
0 files changed, 0 insertions, 0 deletions