MM-55710: Remove join with channel in GetFlaggedPosts (#25513)

https://mattermost.atlassian.net/browse/MM-55710

```release-note
NONE
```
This commit is contained in:
Agniva De Sarker 2023-11-23 19:59:25 +05:30 committed by GitHub
parent 91a7639c3c
commit 0000f1d00f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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