aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-10-10 19:06:35 +0000
committerMario <mario@mariovavti.com>2020-10-10 19:06:35 +0000
commited845d93bc7ac5f46ccb1ea95d53bc5e5f2756bd (patch)
tree042e5208a0bcde20b629501a2ef19781fd478a93
parent595f3d99b4bd2618630f9a49423b29bfbfcbca41 (diff)
downloadvolse-hubzilla-ed845d93bc7ac5f46ccb1ea95d53bc5e5f2756bd.tar.gz
volse-hubzilla-ed845d93bc7ac5f46ccb1ea95d53bc5e5f2756bd.tar.bz2
volse-hubzilla-ed845d93bc7ac5f46ccb1ea95d53bc5e5f2756bd.zip
5.0RC testing: fix issue with event responses
-rw-r--r--Zotlabs/Lib/Activity.php2
-rw-r--r--include/event.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index e3798415c..af7d945ba 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -168,7 +168,7 @@ class Activity {
if($r) {
xchan_query($r,true);
$r = fetch_post_tags($r,true);
- if ($r[0]['verb'] === 'Create' && $r[0]['obj_type'] === ACTIVITY_OBJ_EVENT) {
+ if (in_array($r[0]['verb'], ['Create', 'Invite']) && $r[0]['obj_type'] === ACTIVITY_OBJ_EVENT) {
$r[0]['verb'] = 'Invite';
return self::encode_activity($r[0]);
}
diff --git a/include/event.php b/include/event.php
index 679440726..765086167 100644
--- a/include/event.php
+++ b/include/event.php
@@ -1247,7 +1247,7 @@ function event_store_item($arr, $event) {
$item_arr['deny_cid'] = $arr['deny_cid'];
$item_arr['deny_gid'] = $arr['deny_gid'];
$item_arr['item_private'] = $private;
- $item_arr['verb'] = ACTIVITY_POST;
+ $item_arr['verb'] = 'Invite';
$item_arr['item_wall'] = $item_wall;
$item_arr['item_origin'] = $item_origin;
$item_arr['item_thread_top'] = $item_thread_top;