mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-13 05:27:29 -06: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
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue