# Bug: Reaktion und Reaktion-erhalten laden die nächste Seite nicht

**URL:** https://meta.discourse.org/t/bug-reaction-and-reaction-received-fail-to-load-the-next-page/390385
**Category:** Bug
**Tags:** reactions
**Created:** [4. Dezember 2025 um 08:21 UTC](https://meta.discourse.org/t/bug-reaction-and-reaction-received-fail-to-load-the-next-page/390385 "2025-12-04T08:21:37Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![small-lovely-cat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/small-lovely-cat/32/553546_2.png) [@small-lovely-cat](https://meta.discourse.org/u/small-lovely-cat)
#### Post date: [4. Dezember 2025 um 08:21 UTC](https://meta.discourse.org/t/bug-reaction-and-reaction-received-fail-to-load-the-next-page/390385/1 "2025-12-04T08:21:37Z")

</div>

Auf der Seite „reaction/reaction-received“ bei „activity/notification“ gibt es einen Fehler.

Wenn der Benutzer versucht, nach unten zu scrollen und die nächste Seite zu laden, werden dieselben Elemente zur Liste hinzugefügt, was zu Duplizierung führt.

Das Problem liegt in einer Fehlausrichtung zwischen Frontend und Backend. Die im Frontend definierte `id` ist `post_id`, während das Backend `reaction_id` benötigt.

Ein Entwurf einer Pull-Anfrage (PR) ist hier, bitte überprüfen Sie diese, wenn es Ihnen passt.

> <https://github.com/discourse/discourse/pull/36451>
>
> The issue was caused by a mismatch in frontend/backend behavior.
> 
> The backend …query requires \`discourse\_reactions\_reaction\_users.id \< before\_reaction\_id\`, but the \`before\_reaction\_id\` frontend gives is actually the last \`post\_id\` rather than \`id\`(reaction\_id), this caused a misalignment and thus prevent the \`/activity/reactions\` and \`/notifications/reactions-received\` from loading the next page.
> 
> This commit fixs the misalignment in the frontend by changing the wrong cast \`id: reaction.post.id\` to \`post\_id: reaction.post.id\`, and thus the \`id\` in the response is kept.
> 
> Before fix:
> \<img width="926" height="259" alt="image" src="https://github.com/user-attachments/assets/69487f35-e05e-4922-b19e-e91375815332" /\>
> 
> Then the next request(\`before\_reaction\_user\_id\` = 10939178 = \`post\_id\` from last request)
> 
> \<img width="1145" height="258" alt="image" src="https://github.com/user-attachments/assets/a0c699af-e7ff-416c-b09b-dca201ebe32c" /\>
> 
> \---
> 
> After fix:
> 
> \<img width="1284" height="265" alt="image" src="https://github.com/user-attachments/assets/c9025b4f-caa5-42c5-8522-5296d03adb63" /\>
> 
> \<img width="1277" height="264" alt="image" src="https://github.com/user-attachments/assets/3c1230dc-9deb-44f3-a63b-bdc8cb75db0e" /\>

---

_[View the full topic](https://meta.discourse.org/t/bug-reaction-and-reaction-received-fail-to-load-the-next-page/390385)._
