mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-05-31 22:58:32 +00:00
don't warn log on forwarded deletes
This commit is contained in:
parent
2e72e7e177
commit
1ec1af9e22
|
@ -96,8 +96,9 @@ func (f *federatingDB) deleteAccount(
|
||||||
|
|
||||||
if account != nil {
|
if account != nil {
|
||||||
if account.ID != requesting.ID {
|
if account.ID != requesting.ID {
|
||||||
log.Warnf(ctx, "%s cannot delete %s", requesting.URI, account.URI)
|
// TODO: handled forwarded deletes,
|
||||||
return true, nil // silently drop this
|
// for now we silently drop this.
|
||||||
|
return true, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Debugf(ctx, "deleting account: %s", account.URI)
|
log.Debugf(ctx, "deleting account: %s", account.URI)
|
||||||
|
@ -131,8 +132,9 @@ func (f *federatingDB) deleteStatus(
|
||||||
|
|
||||||
if status != nil {
|
if status != nil {
|
||||||
if status.AccountID != requesting.ID {
|
if status.AccountID != requesting.ID {
|
||||||
log.Warnf(ctx, "%s cannot delete %s", requesting.URI, status.URI)
|
// TODO: handled forwarded deletes,
|
||||||
return true, nil // silently drop this
|
// for now we silently drop this.
|
||||||
|
return true, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Debugf(ctx, "deleting status: %s", status.URI)
|
log.Debugf(ctx, "deleting status: %s", status.URI)
|
||||||
|
|
Loading…
Reference in a new issue