mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 23:37:15 +08:00
add missing filter
This commit is contained in:
parent
d3c9050e0f
commit
7f60693b46
|
@ -87,6 +87,7 @@ class Group < ActiveRecord::Base
|
||||||
.references(:posts, :topics, :category)
|
.references(:posts, :topics, :category)
|
||||||
.where('topics.archetype <> ?', Archetype.private_message)
|
.where('topics.archetype <> ?', Archetype.private_message)
|
||||||
.where(post_type: Post.types[:regular])
|
.where(post_type: Post.types[:regular])
|
||||||
|
.where('group_mentions.group_id = ?', self.id)
|
||||||
|
|
||||||
result = guardian.filter_allowed_categories(result)
|
result = guardian.filter_allowed_categories(result)
|
||||||
result = result.where('posts.id < ?', before_post_id) if before_post_id
|
result = result.where('posts.id < ?', before_post_id) if before_post_id
|
||||||
|
|
Loading…
Reference in New Issue
Block a user