Community reaction limit override is ignored by the backend

(#5103) Bug Open: Needs triage api community messaging self-hosting

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

1 comment

Sign in with Fluxer to comment and vote.
Comment by Sunlight Hertz
CR Canary Desktop 2026.1129.234426, Web 2026.1201.190205, macOS 27.2.1 (arm64), Electron 44.10.0, Chrome 152.0.7977.169, Node 24.22.1, Locale en-US Stable Web 2026.1201.202301, macOS 10.15 (arm64), Firefox 161.0, Locale en-US
rexctl version
+- Versions ---------------------------------------------------------------+
|  rexctl       2026.1201.202301 (8d336947)                                |
|  Fluxer       2026.1201.202301                                           |
|  Runs on      Linux, systemd                                             |
|  Built with   go1.27.4, linux/amd64                                      |
+--------------------------------------------------------------------------+