aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2025-02-19 09:46:52 +0000
committerMario <mario@mariovavti.com>2025-02-19 09:46:52 +0000
commitea9d2a0acf40cb86aa897e3871a3ca7b4a276cab (patch)
tree8c7073162db8c68e71728742730149516bd35117 /Zotlabs
parent5d55006be835d766d49b57afb1afdde2f0f970a4 (diff)
downloadvolse-hubzilla-ea9d2a0acf40cb86aa897e3871a3ca7b4a276cab.tar.gz
volse-hubzilla-ea9d2a0acf40cb86aa897e3871a3ca7b4a276cab.tar.bz2
volse-hubzilla-ea9d2a0acf40cb86aa897e3871a3ca7b4a276cab.zip
prefer contextHistory over context
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/Activity.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 925a4ef7d..2db0c6c12 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -2976,7 +2976,10 @@ class Activity {
// This isn't perfect but the best we can do for now.
$item['comment_policy'] = ((isset($act->data['commentPolicy'])) ? $act->data['commentPolicy'] : 'authenticated');
- if (!empty($act->obj['context'])) {
+ if (!empty($act->obj['contextHistory'])) {
+ IConfig::Set($item, 'activitypub', 'context', $act->obj['contextHistory'], 1);
+ }
+ elseif (!empty($act->obj['context'])) {
IConfig::Set($item, 'activitypub', 'context', $act->obj['context'], 1);
}