Skip to content

events: add GET /v1/events/:eventId/followers#774

Merged
dylanjeffers merged 1 commit intomainfrom
add-event-followers
Apr 21, 2026
Merged

events: add GET /v1/events/:eventId/followers#774
dylanjeffers merged 1 commit intomainfrom
add-event-followers

Conversation

@dylanjeffers
Copy link
Copy Markdown
Contributor

New read endpoint returning the users subscribed to a remix-contest event, ordered by each follower's own follower count so the most- followed fans surface first. Shape mirrors /v1/users/:userId/followers so the same User renderers consume it.

Filters mirror the existing follow_state semantics:

  • entity_type='Event' only (ignores legacy 'User' rows with colliding numeric ids)
  • is_current & NOT is_delete
  • is_deactivated excluded

The subscriptions table reuses user_id as the mirrored event id, so a plain USING(user_id) join against users / aggregate_user is ambiguous — joins are qualified against subscriber_id instead.

Feeds the web Followers card's avatar stack + leaderboard chevron.

New read endpoint returning the users subscribed to a remix-contest
event, ordered by each follower's own follower count so the most-
followed fans surface first. Shape mirrors /v1/users/:userId/followers
so the same User renderers consume it.

Filters mirror the existing follow_state semantics:
- entity_type='Event' only (ignores legacy 'User' rows with colliding
  numeric ids)
- is_current & NOT is_delete
- is_deactivated excluded

The subscriptions table reuses `user_id` as the mirrored event id, so
a plain USING(user_id) join against users / aggregate_user is
ambiguous — joins are qualified against subscriber_id instead.

Feeds the web Followers card's avatar stack + leaderboard chevron.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dylanjeffers dylanjeffers merged commit 9eb4a63 into main Apr 21, 2026
4 checks passed
@dylanjeffers dylanjeffers deleted the add-event-followers branch April 21, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant