mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
MM-55710: Remove join with channel in GetFlaggedPosts (#25513)
https://mattermost.atlassian.net/browse/MM-55710 ```release-note NONE ```
This commit is contained in:
parent
91a7639c3c
commit
0000f1d00f
@ -505,13 +505,10 @@ func (s *SqlPostStore) getFlaggedPosts(userId, channelId, teamId string, offset
|
||||
WHERE
|
||||
ChannelId IN (
|
||||
SELECT
|
||||
Id
|
||||
ChannelId
|
||||
FROM
|
||||
Channels,
|
||||
ChannelMembers
|
||||
WHERE
|
||||
Id = ChannelId
|
||||
AND UserId = ?
|
||||
WHERE UserId = ?
|
||||
)
|
||||
TEAM_FILTER
|
||||
ORDER BY CreateAt DESC
|
||||
|
Loading…
Reference in New Issue
Block a user