From 95bfdb59b6a1e04e474551c23c7caef619c79839 Mon Sep 17 00:00:00 2001
From: Jonas Kohl
Date: Thu, 19 Sep 2024 14:19:35 +0200
Subject: Topic locking
---
src/application/views/view_user.php | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
(limited to 'src/application/views/view_user.php')
diff --git a/src/application/views/view_user.php b/src/application/views/view_user.php
index d3ebe04..5c89411 100644
--- a/src/application/views/view_user.php
+++ b/src/application/views/view_user.php
@@ -59,7 +59,9 @@ $emailPending = $isOwnProfile && $user->pendingEmail !== null;
= htmlentities(StringUtils::truncate(strip_tags(renderPost($post->content)), 100)) ?>
= __("posted on %post_date% in %topic%", [
"post_date" => '' . htmlentities($post->postDate->format("c")) . '',
- "topic" => '' . htmlentities($topics[$post->topicId]?->title ?? "unknown") . '',
+ "topic" => '' .
+ ($topics[$post->topicId]?->isLocked ? ' ' : '') .
+ htmlentities($topics[$post->topicId]?->title ?? "unknown") . '',
]) ?>
--
cgit v1.2.3