From 18a66a2cab290a82f1099e538ae70e5e730d724d Mon Sep 17 00:00:00 2001 From: winter Date: Thu, 23 Jan 2025 19:45:02 +0000 Subject: actually don't show placeholders for blocked users's notes --- templates/thread_page.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'templates/thread_page.php') diff --git a/templates/thread_page.php b/templates/thread_page.php index d16c6aa..119f879 100644 --- a/templates/thread_page.php +++ b/templates/thread_page.php @@ -10,9 +10,7 @@ call_template('skeleton', [ $notes = Note::findAllInThread($note->threadApex ?? $note); $user = UserAccount::findByCurrentSession(); foreach ($notes as $n) { - if ($user != null && $user->actor->blocks($n->author)) { - call_template('note_hidden'); - } else { + if (!($user != null && $user->actor->blocks($n->author))) { call_template('note', ['note' => $n, 'selected' => $n == $note]); } } -- cgit v1.3