Revert "[CORE] Avoid the old "reply" relation in inboxnoticestream"

It is needed for mentions.
This commit is contained in:
Alexei Sorokin 2020-08-10 17:23:57 +03:00 committed by Diogo Peralta Cordeiro
parent 024f5fe3a8
commit e8f5e34202

View File

@ -105,8 +105,7 @@ class RawInboxNoticeStream extends FullNoticeStream
FROM notice INNER JOIN subscription
ON notice.profile_id = subscription.subscribed
UNION ALL
SELECT reply.id, notice.profile_id
FROM notice AS reply INNER JOIN notice ON reply.reply_to = notice.id
SELECT notice_id, profile_id FROM reply
UNION ALL
SELECT notice_id, profile_id FROM attention
UNION ALL