diff --git a/api/v1_notifications.go b/api/v1_notifications.go index ebad59b2..f61a6718 100644 --- a/api/v1_notifications.go +++ b/api/v1_notifications.go @@ -172,14 +172,14 @@ WHERE ) ) AND ( - -- Check entity_user_id if present + -- Check entity_user_id if present (skip score check for fan club notifications since the entity user must be verified) NOT (n.data ? 'entity_user_id') OR EXISTS ( SELECT 1 FROM users u2 JOIN aggregate_user a2 ON u2.user_id = a2.user_id WHERE u2.user_id = (n.data->>'entity_user_id')::integer AND u2.is_current = true AND u2.is_deactivated = false - AND a2.score >= 0 + AND (n.type = 'fan_club_text_post' OR a2.score >= 0) ) ) )