aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Like.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2020-01-14 13:29:45 -0800
committerzotlabs <mike@macgirvin.com>2020-01-14 13:29:45 -0800
commit2a287e6def5ab54037222c963ab0875faf62fc1a (patch)
tree6ab43926784d89f8177eec32e068c26894655876 /Zotlabs/Module/Like.php
parentd3cbbe029c1f19a77ac0c278f735d81b9dd3a3ec (diff)
downloadvolse-hubzilla-2a287e6def5ab54037222c963ab0875faf62fc1a.tar.gz
volse-hubzilla-2a287e6def5ab54037222c963ab0875faf62fc1a.tar.bz2
volse-hubzilla-2a287e6def5ab54037222c963ab0875faf62fc1a.zip
event compatibility work
Diffstat (limited to 'Zotlabs/Module/Like.php')
-rw-r--r--Zotlabs/Module/Like.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/Zotlabs/Module/Like.php b/Zotlabs/Module/Like.php
index 052d51d43..ff7554b7e 100644
--- a/Zotlabs/Module/Like.php
+++ b/Zotlabs/Module/Like.php
@@ -75,7 +75,12 @@ class Like extends \Zotlabs\Web\Controller {
return EMPTY_STR;
}
-
+ $is_rsvp = false;
+ if (in_array($activity, [ ACTVITY_ATTEND, ACTIVITY_ATTENDNO, ACTIVITY_ATTENDMAYBE ])) {
+ $is_rsvp = true;
+ }
+
+
$extended_like = false;
$object = $target = null;
$post_type = EMPTY_STR;
@@ -381,7 +386,7 @@ class Like extends \Zotlabs\Web\Controller {
$arr = array();
$arr['uuid'] = $uuid;
- $arr['mid'] = z_root() . '/item/' . $uuid;
+ $arr['mid'] = z_root() . (($is_rsvp) ? '/activity/' : '/item/') . $uuid;
if($extended_like) {
$arr['item_thread_top'] = 1;