diff options
Diffstat (limited to 'internal/federation/federatingdb/announce.go')
-rw-r--r-- | internal/federation/federatingdb/announce.go | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/internal/federation/federatingdb/announce.go b/internal/federation/federatingdb/announce.go index 88b150cf0..ab230cdfb 100644 --- a/internal/federation/federatingdb/announce.go +++ b/internal/federation/federatingdb/announce.go @@ -39,12 +39,9 @@ func (f *federatingDB) Announce(ctx context.Context, announce vocab.ActivityStre l.Debug("entering Announce") } - receivingAccount, _ := extractFromCtx(ctx) - if receivingAccount == nil { - // If the receiving account wasn't set on the context, that means this request didn't pass - // through the API, but came from inside GtS as the result of another activity on this instance. That being so, - // we can safely just ignore this activity, since we know we've already processed it elsewhere. - return nil + receivingAccount, _, internal := extractFromCtx(ctx) + if internal { + return nil // Already processed. } boost, isNew, err := f.typeConverter.ASAnnounceToStatus(ctx, announce) |