aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Activity.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-01-26 13:02:51 +0000
committerMario <mario@mariovavti.com>2022-01-26 13:02:51 +0000
commit7a1c6b64c2dd03adc005e43586b2f76d9cea855f (patch)
tree1c4dffa37e1328c6dec2f57b994f99cdd5cd2e74 /Zotlabs/Lib/Activity.php
parent8250cb1e8daefc67b5bdfe966a95aee197145012 (diff)
downloadvolse-hubzilla-7a1c6b64c2dd03adc005e43586b2f76d9cea855f.tar.gz
volse-hubzilla-7a1c6b64c2dd03adc005e43586b2f76d9cea855f.tar.bz2
volse-hubzilla-7a1c6b64c2dd03adc005e43586b2f76d9cea855f.zip
$act->raw will not always hold the AP raw message. Look for it in iconfig.
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r--Zotlabs/Lib/Activity.php17
1 files changed, 16 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 09aaeae25..3ba8339f6 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -2638,8 +2638,23 @@ class Activity {
}
}
+ if (is_array($act->obj) && is_array($act->obj['attachment'])) {
+ foreach($act->obj['attachment'] as $a) {
+ if (isset($a['type']) && $a['type'] === 'PropertyValue' &&
+ isset($a['name']) && $a['name'] === 'zot.activitypub.rawmsg' &&
+ isset($a['value'])
+ ) {
+ $rawmsg = $a['value'];
+ break;
+ }
+ }
+ }
+
+ if ($rawmsg) {
+ set_iconfig($s, 'activitypub', 'rawmsg', $rawmsg, 1);
+ }
+
set_iconfig($s, 'activitypub', 'recips', $act->raw_recips);
- set_iconfig($s, 'activitypub', 'rawmsg', $act->raw, 1);
$hookinfo = [
'act' => $act,