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
parent 7cb10b71bb
commit 8c41663175
1 changed files with 1 additions and 2 deletions

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