summaryrefslogtreecommitdiff
path: root/internal/federation/federator.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2022-09-25 12:09:41 +0100
committerLibravatar GitHub <noreply@github.com>2022-09-25 13:09:41 +0200
commit7a1aa04bbbc9f95442c8850ef61d1d58bb12df74 (patch)
tree7b05a52914deb1f838539a3196edca287942fd95 /internal/federation/federator.go
parent[bugfix] Wrap media reader in length reader to determine length if no `conten... (diff)
downloadgotosocial-7a1aa04bbbc9f95442c8850ef61d1d58bb12df74.tar.xz
[bugfix] update thread iterators to not use recursion (#851)
* update thread iterators to not use recursion, rewrote both Signed-off-by: kim <grufwub@gmail.com> * fix endless descendant deref, don't error if fetching existing status Signed-off-by: kim <grufwub@gmail.com> * don't refetch remote ancestor statuses, improve descendant iter commenting Signed-off-by: kim <grufwub@gmail.com> * move collection page next logic so we capture first page of entities Signed-off-by: kim <grufwub@gmail.com> * improve log format argument quoting Signed-off-by: kim <grufwub@gmail.com> * improve code commenting of collection paging Signed-off-by: kim <grufwub@gmail.com> * only dereference announce's originating status if _not_ local. update DereferenceThread() signature. cleanup searchStatusByURI() Signed-off-by: kim <grufwub@gmail.com> Signed-off-by: kim <grufwub@gmail.com>
Diffstat (limited to 'internal/federation/federator.go')
-rw-r--r--internal/federation/federator.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/federation/federator.go b/internal/federation/federator.go
index 2f0606338..0b09144c2 100644
--- a/internal/federation/federator.go
+++ b/internal/federation/federator.go
@@ -53,7 +53,7 @@ type Federator interface {
// If something goes wrong during authentication, nil, false, and an error will be returned.
AuthenticateFederatedRequest(ctx context.Context, username string) (*url.URL, gtserror.WithCode)
- DereferenceRemoteThread(ctx context.Context, username string, statusURI *url.URL) error
+ DereferenceRemoteThread(ctx context.Context, username string, statusURI *url.URL, status *gtsmodel.Status, statusable ap.Statusable)
DereferenceAnnounce(ctx context.Context, announce *gtsmodel.Status, requestingUsername string) error
GetRemoteAccount(ctx context.Context, params dereferencing.GetRemoteAccountParams) (*gtsmodel.Account, error)