summaryrefslogtreecommitdiff
path: root/src/application/views/view_search_results.php
diff options
context:
space:
mode:
authorJonas Kohl2024-10-12 20:10:25 +0200
committerJonas Kohl2024-10-12 20:10:25 +0200
commitd83c43d9c9bc5cd12c9c8b3df6d249fad5b753a8 (patch)
tree5b0c985c1a6959748183a30f33a9a8f9546be8db /src/application/views/view_search_results.php
parentdc5ad376ecc0a58d9e36c7b66cca57794c8b3b88 (diff)
Remove spoilers from search results and profilesv0.5.2
Diffstat (limited to 'src/application/views/view_search_results.php')
-rw-r--r--src/application/views/view_search_results.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/application/views/view_search_results.php b/src/application/views/view_search_results.php
index 93e36f7..660284d 100644
--- a/src/application/views/view_search_results.php
+++ b/src/application/views/view_search_results.php
@@ -16,7 +16,7 @@ use mystic\forum\utils\StringUtils;
<?php if ($hasAttachments): ?>
<span class="badge"><span class="fa fa-paperclip"></span></span>
<?php endif; ?>
- <?= htmlentities(html_entity_decode(StringUtils::truncate(strip_tags(renderPost($post->content)), 100))) ?><br>
+ <?= renderPostSummary($post->content) ?><br>
<span class="text-muted"><?= __("posted by %author% on %post_date% in %topic%", [
"author" => '<em>' . htmlentities($users[$post->authorId]?->displayName ?? __("unknown")) . '</em>',
"post_date" => '<span class="_time">' . htmlentities($post->postDate->format("c")) . '</span>',