diff options
author | 2021-09-30 10:56:02 +0200 | |
---|---|---|
committer | 2021-09-30 10:56:02 +0200 | |
commit | 36a09dd0df06e1b6f64347ed3d3c2c8ca963fc73 (patch) | |
tree | 78e032fecd7c2e6b0260c2a285d9d3bc1238ffcb /internal/federation/federatingdb/delete.go | |
parent | upstep bun to v1.0.9 (#252) (diff) | |
download | gotosocial-36a09dd0df06e1b6f64347ed3d3c2c8ca963fc73.tar.xz |
handle remote account deletion more systematically (#254)
Diffstat (limited to 'internal/federation/federatingdb/delete.go')
-rw-r--r-- | internal/federation/federatingdb/delete.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/internal/federation/federatingdb/delete.go b/internal/federation/federatingdb/delete.go index abc3715da..9aa36ee90 100644 --- a/internal/federation/federatingdb/delete.go +++ b/internal/federation/federatingdb/delete.go @@ -89,10 +89,7 @@ func (f *federatingDB) Delete(ctx context.Context, id *url.URL) error { a, err := f.db.GetAccountByURI(ctx, id.String()) if err == nil { // it's an account - l.Debugf("uri is for an account with id: %s", a.ID) - if err := f.db.DeleteByID(ctx, a.ID, >smodel.Account{}); err != nil { - return fmt.Errorf("DELETE: err deleting account: %s", err) - } + l.Debugf("uri is for an account with id %s, passing delete message to the processor", a.ID) fromFederatorChan <- messages.FromFederator{ APObjectType: ap.ObjectProfile, APActivityType: ap.ActivityDelete, |