summaryrefslogtreecommitdiff
path: root/internal/federation/federatingdb/delete.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2021-09-30 10:56:02 +0200
committerLibravatar GitHub <noreply@github.com>2021-09-30 10:56:02 +0200
commit36a09dd0df06e1b6f64347ed3d3c2c8ca963fc73 (patch)
tree78e032fecd7c2e6b0260c2a285d9d3bc1238ffcb /internal/federation/federatingdb/delete.go
parentupstep bun to v1.0.9 (#252) (diff)
downloadgotosocial-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.go5
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, &gtsmodel.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,