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/note_hidden.php | 3 --- templates/thread_page.php | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 templates/note_hidden.php (limited to 'templates') diff --git a/templates/note_hidden.php b/templates/note_hidden.php deleted file mode 100644 index baad0d6..0000000 --- a/templates/note_hidden.php +++ /dev/null @@ -1,3 +0,0 @@ - \ No newline at end of file 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