aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-06-21 10:18:40 +0000
committerMario <mario@mariovavti.com>2024-06-21 10:18:40 +0000
commit1c34c354cf48d73863a1e14691f15e678d939023 (patch)
treeef8108e1552164d9bf28f8104a49ecc30fe9abd0 /Zotlabs/Lib
parent0f02553d129e2bc533cf98a590f3c9e04dc55bf3 (diff)
downloadvolse-hubzilla-1c34c354cf48d73863a1e14691f15e678d939023.tar.gz
volse-hubzilla-1c34c354cf48d73863a1e14691f15e678d939023.tar.bz2
volse-hubzilla-1c34c354cf48d73863a1e14691f15e678d939023.zip
fix issue where event items were parsed multiple times
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/ThreadItem.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php
index eb1020cd2..1082bf642 100644
--- a/Zotlabs/Lib/ThreadItem.php
+++ b/Zotlabs/Lib/ThreadItem.php
@@ -362,7 +362,8 @@ class ThreadItem {
localize_item($item);
- $body = prepare_body($item,true);
+ $opts = (($item['resource_type'] === 'event') ? ['is_event_item' => true] : []);
+ $body = prepare_body($item, true, $opts);
// $viewthread (below) is only valid in list mode. If this is a channel page, build the thread viewing link
// since we can't depend on llink or plink pointing to the right local location.