summaryrefslogtreecommitdiff
path: root/internal/db/bundb/relationship_follow_req.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/bundb/relationship_follow_req.go')
-rw-r--r--internal/db/bundb/relationship_follow_req.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/db/bundb/relationship_follow_req.go b/internal/db/bundb/relationship_follow_req.go
index 030c99c58..f36d626ca 100644
--- a/internal/db/bundb/relationship_follow_req.go
+++ b/internal/db/bundb/relationship_follow_req.go
@@ -265,8 +265,8 @@ func (r *relationshipDB) AcceptFollowRequest(ctx context.Context, sourceAccountI
}
// Delete original follow request notification
- if err := r.state.DB.DeleteNotifications(ctx, []string{
- string(gtsmodel.NotificationFollowRequest),
+ if err := r.state.DB.DeleteNotifications(ctx, []gtsmodel.NotificationType{
+ gtsmodel.NotificationFollowRequest,
}, targetAccountID, sourceAccountID); err != nil {
return nil, err
}
@@ -281,8 +281,8 @@ func (r *relationshipDB) RejectFollowRequest(ctx context.Context, sourceAccountI
}
// Delete follow request notification
- return r.state.DB.DeleteNotifications(ctx, []string{
- string(gtsmodel.NotificationFollowRequest),
+ return r.state.DB.DeleteNotifications(ctx, []gtsmodel.NotificationType{
+ gtsmodel.NotificationFollowRequest,
}, targetAccountID, sourceAccountID)
}