# Viewing mentions at group's activity page is broken

**URL:** https://meta.discourse.org/t/viewing-mentions-at-groups-activity-page-is-broken/308044
**Category:** Bug
**Created:** [May 15, 2024, 7:25am UTC](https://meta.discourse.org/t/viewing-mentions-at-groups-activity-page-is-broken/308044 "2024-05-15T07:25:50Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [May 15, 2024, 7:25am UTC](https://meta.discourse.org/t/viewing-mentions-at-groups-activity-page-is-broken/308044/1 "2024-05-15T07:25:50Z")

</div>

When you click on Mentions at a group’s activity page like [g/community-moderators/activity](https://meta.discourse.org/g/community-moderators/activity), it doesn’t work:

 ![Cannot read properties of undefined (reading 'map') at Group.findPosts](https://global.discourse-cdn.com/meta/original/4X/2/9/0/2907e2966b6c75a972d140b8c12624211b3fbad8.png)

The experience is worse when you try to open the mentions in a new tab.

---

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [May 15, 2024, 7:30am UTC](https://meta.discourse.org/t/viewing-mentions-at-groups-activity-page-is-broken/308044/2 "2024-05-15T07:30:10Z")

</div>

I can repro this too.

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [May 15, 2024, 1:47pm UTC](https://meta.discourse.org/t/viewing-mentions-at-groups-activity-page-is-broken/308044/3 "2024-05-15T13:47:50Z")

</div>

Thanks for the report, we’ll prioritise fixing this. 👍🏻

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [May 17, 2024, 2:54pm UTC](https://meta.discourse.org/t/viewing-mentions-at-groups-activity-page-is-broken/308044/4 "2024-05-17T14:54:02Z")

</div>

Having a quick look 👀

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [May 17, 2024, 3:38pm UTC](https://meta.discourse.org/t/viewing-mentions-at-groups-activity-page-is-broken/308044/6 "2024-05-17T15:38:15Z")

</div>

It looks like a side effect of

[https://github.com/discourse/discourse/commit/1deeff2336a3d9180ec6276a8fd5b399ec6165c8](https://github.com/discourse/discourse/commit/1deeff2336a3d9180ec6276a8fd5b399ec6165c8)

The output format in the group’s controller changed for `/posts`, but not for `/mentions`.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [May 17, 2024, 4:09pm UTC](https://meta.discourse.org/t/viewing-mentions-at-groups-activity-page-is-broken/308044/7 "2024-05-17T16:09:57Z")

</div>

Thanks @Moin for the report 👍  
Thanks @Arkshine for the link to the related change 👍

This will be fixed by 👇

[https://github.com/discourse/discourse/pull/27066](https://github.com/discourse/discourse/pull/27066)

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [May 17, 2024, 8:08pm UTC](https://meta.discourse.org/t/viewing-mentions-at-groups-activity-page-is-broken/308044/9 "2024-05-17T20:08:07Z")

</div>

I have just tried this, and it appears that only the first 20 results are loaded. When scrolling further, the same 20 results seem to be repeated.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [May 17, 2024, 9:29pm UTC](https://meta.discourse.org/t/viewing-mentions-at-groups-activity-page-is-broken/308044/10 "2024-05-17T21:29:05Z")

</div>

Nice catch @Moin 👏

The client is using `before` instead of `before_post_id` to do the infinite loading ⏳

This will be fixed by 👇

[https://github.com/discourse/discourse/pull/27070](https://github.com/discourse/discourse/pull/27070)

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [May 22, 2024, 12:00pm UTC](https://meta.discourse.org/t/viewing-mentions-at-groups-activity-page-is-broken/308044/11 "2024-05-22T12:00:35Z")

</div>

This topic was automatically closed after 21 hours. New replies are no longer allowed.
