From cb54324430e7c4640a7aa5aac24932b5e91b71c4 Mon Sep 17 00:00:00 2001 From: tsmethurst Date: Fri, 28 May 2021 22:47:18 +0200 Subject: federate account updates --- internal/federation/federatingdb/update.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'internal/federation/federatingdb/update.go') diff --git a/internal/federation/federatingdb/update.go b/internal/federation/federatingdb/update.go index 3ac5f265a..1a148056b 100644 --- a/internal/federation/federatingdb/update.go +++ b/internal/federation/federatingdb/update.go @@ -120,6 +120,12 @@ func (f *federatingDB) Update(ctx context.Context, asType vocab.Type) error { return fmt.Errorf("error converting to account: %s", err) } + if updatedAcct.Domain == f.config.Host { + // no need to update local accounts + // in fact, if we do this will break the shit out of things so do NOT + return nil + } + if requestingAcct.URI != updatedAcct.URI { return fmt.Errorf("update for account %s was requested by account %s, this is not valid", updatedAcct.URI, requestingAcct.URI) } -- cgit v1.2.3