diff options
author | Mario <mario@mariovavti.com> | 2020-01-15 10:30:02 +0100 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-01-15 10:30:02 +0100 |
commit | 65bc3636854f0e3112ffc412dec3ddc16516dec9 (patch) | |
tree | a8b0af66015815d56342daf8301ab5ae095eda0a /Zotlabs/Module/Like.php | |
parent | d96f4340e80207a29a5c1c49cae8c25e3934d5ae (diff) | |
parent | 2a287e6def5ab54037222c963ab0875faf62fc1a (diff) | |
download | volse-hubzilla-65bc3636854f0e3112ffc412dec3ddc16516dec9.tar.gz volse-hubzilla-65bc3636854f0e3112ffc412dec3ddc16516dec9.tar.bz2 volse-hubzilla-65bc3636854f0e3112ffc412dec3ddc16516dec9.zip |
Merge branch 'dev' into 'dev'
event compatibility work
See merge request hubzilla/core!1817
Diffstat (limited to 'Zotlabs/Module/Like.php')
-rw-r--r-- | Zotlabs/Module/Like.php | 9 |
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; |