Skip to content

Commit

Permalink
MM-55710: Remove join with channel in GetFlaggedPosts (mattermost#25513)
Browse files Browse the repository at this point in the history
  • Loading branch information
agnivade authored Nov 23, 2023
1 parent 91a7639 commit 0000f1d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions server/channels/store/sqlstore/post_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0000f1d

Please sign in to comment.