diff options
author | 2022-09-25 12:09:41 +0100 | |
---|---|---|
committer | 2022-09-25 13:09:41 +0200 | |
commit | 7a1aa04bbbc9f95442c8850ef61d1d58bb12df74 (patch) | |
tree | 7b05a52914deb1f838539a3196edca287942fd95 /internal/federation/dereference.go | |
parent | [bugfix] Wrap media reader in length reader to determine length if no `conten... (diff) | |
download | gotosocial-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/dereference.go')
-rw-r--r-- | internal/federation/dereference.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/federation/dereference.go b/internal/federation/dereference.go index 705cdbd19..6095a4d52 100644 --- a/internal/federation/dereference.go +++ b/internal/federation/dereference.go @@ -39,8 +39,8 @@ func (f *federator) EnrichRemoteStatus(ctx context.Context, username string, sta return f.dereferencer.EnrichRemoteStatus(ctx, username, status, includeParent) } -func (f *federator) DereferenceRemoteThread(ctx context.Context, username string, statusIRI *url.URL) error { - return f.dereferencer.DereferenceThread(ctx, username, statusIRI) +func (f *federator) DereferenceRemoteThread(ctx context.Context, username string, statusIRI *url.URL, status *gtsmodel.Status, statusable ap.Statusable) { + f.dereferencer.DereferenceThread(ctx, username, statusIRI, status, statusable) } func (f *federator) GetRemoteInstance(ctx context.Context, username string, remoteInstanceURI *url.URL) (*gtsmodel.Instance, error) { |