Skip to content

Commit 9c1f2ff

Browse files
[2.x] [realtime] Fixed an issue where tag-specified discussion pushing could not work (#4320)
* Update NewActivity.js * format
1 parent 1b9b852 commit 9c1f2ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extensions/realtime/js/src/forum/extend/DiscussionList/NewActivity.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ export default function () {
6767
// When we're viewing a specific tag but the discussion has no such tags, ignore it.
6868
if (discussion && activeTag && discussion.tags?.()) {
6969
// Tag is not assigned to this discussion.
70-
if (discussion.tags().indexOf(activeTag.id()) === -1) return;
70+
const tagIds = discussion.tags().map((tag) => tag.id());
71+
if (tagIds.indexOf(activeTag.id()) === -1) return;
7172
}
7273

7374
if (

0 commit comments

Comments
 (0)