diff options
author | 2023-06-24 09:32:10 +0200 | |
---|---|---|
committer | 2023-06-24 08:32:10 +0100 | |
commit | 3e19f480e63085d48ea4242f46b57105edaa640f (patch) | |
tree | 0cb8ae6aa87dbde884f33a6b3531d10910cab87b /internal/federation/dereferencing/dereferencer.go | |
parent | [bugfix/chore] oauth entropy fix + media cleanup tasks rewrite (#1853) (diff) | |
download | gotosocial-3e19f480e63085d48ea4242f46b57105edaa640f.tar.xz |
[bugfix] Ensure `InReplyToID` set properly, update dereference ancestors func (#1921)
Diffstat (limited to 'internal/federation/dereferencing/dereferencer.go')
-rw-r--r-- | internal/federation/dereferencing/dereferencer.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/federation/dereferencing/dereferencer.go b/internal/federation/dereferencing/dereferencer.go index 2902ebcbc..170fb6119 100644 --- a/internal/federation/dereferencing/dereferencer.go +++ b/internal/federation/dereferencing/dereferencer.go @@ -66,6 +66,12 @@ type Dereferencer interface { // This is a more optimized form of manually enqueueing .UpdateStatus() to the federation worker, since it only enqueues update if necessary. RefreshStatusAsync(ctx context.Context, requestUser string, status *gtsmodel.Status, apubStatus ap.Statusable, force bool) + // DereferenceStatusAncestors iterates upwards from the given status, using InReplyToURI, to ensure that as many parent statuses as possible are dereferenced. + DereferenceStatusAncestors(ctx context.Context, requestUser string, status *gtsmodel.Status) error + + // DereferenceStatusDescendents iterates downwards from the given status, using its replies, to ensure that as many children statuses as possible are dereferenced. + DereferenceStatusDescendants(ctx context.Context, requestUser string, statusIRI *url.URL, parent ap.Statusable) error + GetRemoteInstance(ctx context.Context, username string, remoteInstanceURI *url.URL) (*gtsmodel.Instance, error) DereferenceAnnounce(ctx context.Context, announce *gtsmodel.Status, requestingUsername string) error |