mirror of
https://github.com/mattermost/mattermost.git
synced 2026-10-30 22:55:29 +08:00
[MM-37013] Better post filtering (#19013)
Summary: - Skip searching for deleted posts. Ticket: - Part of https://mattermost.atlassian.net/browse/MM-37013
This commit is contained in:
@@ -2531,6 +2531,7 @@ func (s *SqlPostStore) GetUniquePostTypesSince(channelId string, timestamp int64
|
||||
Where(sq.And{
|
||||
sq.Eq{"ChannelId": channelId},
|
||||
sq.GtOrEq{"CreateAt": timestamp},
|
||||
sq.Eq{"DeleteAt": 0},
|
||||
}).ToSql()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user