aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-04-23 16:07:57 +0000
committerMario <mario@mariovavti.com>2023-04-23 16:07:57 +0000
commit3ad0179b629787cb8d7672e351a2abb9847850ad (patch)
treee9e089d94cede2f8a55cbe225b2f4e2957f285c5 /Zotlabs/Module
parent81f33da4991ed2abaa2422dac2bcc5fe5a2eea74 (diff)
downloadvolse-hubzilla-3ad0179b629787cb8d7672e351a2abb9847850ad.tar.gz
volse-hubzilla-3ad0179b629787cb8d7672e351a2abb9847850ad.tar.bz2
volse-hubzilla-3ad0179b629787cb8d7672e351a2abb9847850ad.zip
fix regression when rendering event items
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Like.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Like.php b/Zotlabs/Module/Like.php
index 2cf792c8d..486e6b31f 100644
--- a/Zotlabs/Module/Like.php
+++ b/Zotlabs/Module/Like.php
@@ -451,7 +451,7 @@ class Like extends Controller {
}
else {
$post_type = (($item['resource_type'] === 'photo') ? t('photo') : t('status'));
- if ($item['obj_type'] === ACTIVITY_OBJ_EVENT)
+ if (in_array($item['obj_type'], ['Event', ACTIVITY_OBJ_EVENT]))
$post_type = t('event');
$obj_type = (($item['resource_type'] === 'photo') ? ACTIVITY_OBJ_PHOTO : ACTIVITY_OBJ_NOTE);