summaryrefslogtreecommitdiff
path: root/internal/db/bundb/relationship_mute.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/bundb/relationship_mute.go')
-rw-r--r--internal/db/bundb/relationship_mute.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/db/bundb/relationship_mute.go b/internal/db/bundb/relationship_mute.go
index 07ea4fa13..61b89d323 100644
--- a/internal/db/bundb/relationship_mute.go
+++ b/internal/db/bundb/relationship_mute.go
@@ -249,6 +249,12 @@ func (r *relationshipDB) DeleteAccountMutes(ctx context.Context, accountID strin
return err
}
+ if len(muteIDs) == 0 {
+ // Nothing
+ // to delete.
+ return nil
+ }
+
defer func() {
// Invalidate all account's incoming / outoing mutes on return.
r.state.Caches.DB.UserMute.Invalidate("AccountID", accountID)