mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 01:12:26 -05:00
handle remote account deletion more systematically (#254)
This commit is contained in:
parent
9a53b1a8d1
commit
36a09dd0df
7 changed files with 212 additions and 13 deletions
|
|
@ -181,7 +181,13 @@ func (p *processor) ProcessFromFederator(ctx context.Context, federatorMsg messa
|
|||
return p.deleteStatusFromTimelines(ctx, statusToDelete)
|
||||
case ap.ObjectProfile:
|
||||
// DELETE A PROFILE/ACCOUNT
|
||||
// TODO: handle side effects of account deletion here: delete all objects, statuses, media etc associated with account
|
||||
// handle side effects of account deletion here: delete all objects, statuses, media etc associated with account
|
||||
account, ok := federatorMsg.GTSModel.(*gtsmodel.Account)
|
||||
if !ok {
|
||||
return errors.New("account delete was not parseable as *gtsmodel.Account")
|
||||
}
|
||||
|
||||
return p.accountProcessor.Delete(ctx, account, account.ID)
|
||||
}
|
||||
case ap.ActivityAccept:
|
||||
// ACCEPT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue