Edit history

Community reaction limit override is ignored by the backend has not been edited, so there are no earlier versions.

Current version | Original by Sky
Show

Community reaction limit override is ignored by the backend

Reproduction steps

  1. Deploy a self-hosted Fluxer instance.
  2. Set "Max Reactions per Message" to 75 in the administration panel.
  3. Verify that /.well-known/fluxer returns "max_reactions_per_message": 75.
  4. Attempt to add 31 distinct reactions to a message within a community.

Expected behaviour

The configured limit of 75 distinct reactions per message should be respected by both the client and the API.

Actual behaviour

The backend continues to enforce the default limit of 30, despite the configured override being correctly advertised by the instance discovery endpoint. This affects both regular users and bots.

Build information

ghcr.io/fluxerapp/fluxer:2026.1201.184727 Self-hosted Docker Compose deployment with PostgreSQL.

Platform

macOS, Windows, Linux, Web, Android, iOS, API, Self-hosting

Evidence

The instance discovery endpoint correctly advertises the configured limit:
"max_reactions_per_message": 75
I investigated the source code and identified a potential root cause:
  • MessageReactionService.ts calls resolveLimit() without specifying an evaluation context.
  • LimitResolver.ts defaults to the user evaluation context.
  • LimitConfigMetadata.ts classifies max_reactions_per_message as a guild-scoped limit.
  • LimitRuleRuntime.ts excludes guild-scoped overrides when evaluating user limits.
Consequently, the configured override appears to be ignored and the default value of 30 is retained. Explicitly passing {evaluationContext: 'guild'} when resolving reaction limits should potentially resolve this issue. The same issue may affect max_users_per_message_reaction. Relevant source files: https://github.com/fluxerapp/fluxer/blob/cd7f5bd7bb0e7b56a24c62776cc84ed659823ae5/fluxer_api/src/api/channel/services/interaction/MessageReactionService.ts#L72 https://github.com/fluxerapp/fluxer/blob/cd7f5bd7bb0e7b56a24c62776cc84ed659823ae5/packages/limits/src/LimitResolver.ts https://github.com/fluxerapp/fluxer/blob/cd7f5bd7bb0e7b56a24c62776cc84ed659823ae5/packages/limits/src/LimitRuleRuntime.ts