diff --git a/store/sqlstore/reaction_store.go b/store/sqlstore/reaction_store.go index 7651257ff5..d1a56b6e08 100644 --- a/store/sqlstore/reaction_store.go +++ b/store/sqlstore/reaction_store.go @@ -316,8 +316,7 @@ func (s *SqlReactionStore) GetTopForUserSince(userID string, teamID string, sinc count(EmojiName) AS Count FROM Reactions - INNER JOIN Posts ON Reactions.PostId = Posts.Id - INNER JOIN Channels ON Posts.ChannelId = Channels.Id + INNER JOIN Channels ON Channels.Id = Reactions.ChannelId WHERE Reactions.DeleteAt = 0 AND Reactions.UserId = ?