Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api/v1_notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
)
)
Expand Down
Loading