diff options
author | Mario <mario@mariovavti.com> | 2023-04-23 16:07:57 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-04-23 16:07:57 +0000 |
commit | 3ad0179b629787cb8d7672e351a2abb9847850ad (patch) | |
tree | e9e089d94cede2f8a55cbe225b2f4e2957f285c5 /Zotlabs/Lib | |
parent | 81f33da4991ed2abaa2422dac2bcc5fe5a2eea74 (diff) | |
download | volse-hubzilla-3ad0179b629787cb8d7672e351a2abb9847850ad.tar.gz volse-hubzilla-3ad0179b629787cb8d7672e351a2abb9847850ad.tar.bz2 volse-hubzilla-3ad0179b629787cb8d7672e351a2abb9847850ad.zip |
fix regression when rendering event items
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r-- | Zotlabs/Lib/Activity.php | 2 | ||||
-rw-r--r-- | Zotlabs/Lib/ThreadItem.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index d596b47a0..9a9a6d02c 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -2215,7 +2215,7 @@ class Activity { } static function decode_note($act) { - +//hz_syslog(print_r($act,true)); $response_activity = false; $s = []; diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php index d1b386c42..cf877ed92 100644 --- a/Zotlabs/Lib/ThreadItem.php +++ b/Zotlabs/Lib/ThreadItem.php @@ -197,7 +197,7 @@ class ThreadItem { $response_verbs = array('like'); if(feature_enabled($conv->get_profile_owner(),'dislike')) $response_verbs[] = 'dislike'; - if($item['obj_type'] === ACTIVITY_OBJ_EVENT) { + if(in_array($item['obj_type'], ['Event', ACTIVITY_OBJ_EVENT])) { $response_verbs[] = 'attendyes'; $response_verbs[] = 'attendno'; $response_verbs[] = 'attendmaybe'; @@ -299,7 +299,7 @@ class ThreadItem { } $has_event = false; - if(($item['obj_type'] === ACTIVITY_OBJ_EVENT) && $conv->get_profile_owner() == local_channel()) + if((in_array($item['obj_type'], ['Event', ACTIVITY_OBJ_EVENT])) && $conv->get_profile_owner() == local_channel()) $has_event = true; $like = []; |