aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Activity.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-03-13 22:13:17 +0000
committerMario <mario@mariovavti.com>2021-03-13 22:13:17 +0000
commit22d769ecae17c9d5d36232c543b48b0a155ca502 (patch)
tree612c5e548192810daeac69486d024e61f4255243 /Zotlabs/Lib/Activity.php
parent45ecd1b12729b4f6144d8357e39431e30ec458de (diff)
downloadvolse-hubzilla-22d769ecae17c9d5d36232c543b48b0a155ca502.tar.gz
volse-hubzilla-22d769ecae17c9d5d36232c543b48b0a155ca502.tar.bz2
volse-hubzilla-22d769ecae17c9d5d36232c543b48b0a155ca502.zip
fix mod subthread for zot6
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r--Zotlabs/Lib/Activity.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index c800f331d..9370c2aa5 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -1125,7 +1125,7 @@ class Activity {
static function encode_item_object($item, $elm = 'obj') {
$ret = [];
-
+
if ($item[$elm]) {
if (! is_array($item[$elm])) {
$item[$elm] = json_decode($item[$elm],true);
@@ -1167,6 +1167,7 @@ class Activity {
'http://activitystrea.ms/schema/1.0/tag' => 'Add',
'http://activitystrea.ms/schema/1.0/follow' => 'Follow',
'http://activitystrea.ms/schema/1.0/unfollow' => 'Unfollow',
+ 'http://activitystrea.ms/schema/1.0/stop-following' => 'Unfollow',
'http://purl.org/zot/activity/attendyes' => 'Accept',
'http://purl.org/zot/activity/attendno' => 'Reject',
'http://purl.org/zot/activity/attendmaybe' => 'TentativeAccept',
@@ -1214,6 +1215,7 @@ class Activity {
'http://activitystrea.ms/schema/1.0/tag' => 'Add',
'http://activitystrea.ms/schema/1.0/follow' => 'Follow',
'http://activitystrea.ms/schema/1.0/unfollow' => 'Unfollow',
+ 'http://activitystrea.ms/schema/1.0/stop-following' => 'Unfollow',
'http://purl.org/zot/activity/attendyes' => 'Accept',
'http://purl.org/zot/activity/attendno' => 'Reject',
'http://purl.org/zot/activity/attendmaybe' => 'TentativeAccept',
@@ -2294,11 +2296,11 @@ class Activity {
}
if (array_key_exists('type', $act->obj)) {
-
+
if ($act->obj['type'] === 'Note' && $s['attach']) {
$s['body'] .= self::bb_attach($s['attach'], $s['body']);
}
-
+
if ($act->obj['type'] === 'Question' && in_array($act->type, ['Create', 'Update'])) {
if (array_key_exists('endTime', $act->obj)) {
$s['comments_closed'] = datetime_convert('UTC', 'UTC', $act->obj['endTime']);