aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/thread_page.php
diff options
context:
space:
mode:
authorwinter2025-04-06 14:29:07 +0100
committerwinter2025-04-06 14:29:07 +0100
commit8548bb523e79ee59f2b762c5063c0f00bca603a0 (patch)
treea98acbf649e8d58f867930d31e3518451be21032 /templates/thread_page.php
parentb55d33f26a2f40a787efcd82e6566ee5ac512c1c (diff)
hide deleted notes in thread page
Diffstat (limited to 'templates/thread_page.php')
-rw-r--r--templates/thread_page.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/thread_page.php b/templates/thread_page.php
index ac2e640..da7c556 100644
--- a/templates/thread_page.php
+++ b/templates/thread_page.php
@@ -16,7 +16,8 @@ call_template('skeleton', [
$notes = Note::findAllInThread($targetNote->threadApex ?? $targetNote);
$user = UserAccount::findByCurrentSession();
foreach ($notes as $n) {
- if (!($user != null && $user->actor->blocks($n->author)) && $n->isViewableBy($user)) {
+ /** @var Note $n */
+ if (!($user != null && $user->actor->blocks($n->author)) && $n->isViewableBy($user) && !$n->deleted) {
call_template('note/note', ['note' => $n, 'selected' => $n == $targetNote]);
}
}