From e8f5e3420291805d2b7c36d77865c369b9c76332 Mon Sep 17 00:00:00 2001 From: Alexei Sorokin Date: Mon, 10 Aug 2020 17:23:57 +0300 Subject: [PATCH] Revert "[CORE] Avoid the old "reply" relation in inboxnoticestream" It is needed for mentions. --- lib/notices/inboxnoticestream.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/notices/inboxnoticestream.php b/lib/notices/inboxnoticestream.php index 1c8a7d1556..2c5213a368 100644 --- a/lib/notices/inboxnoticestream.php +++ b/lib/notices/inboxnoticestream.php @@ -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