aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2025-02-20 11:44:54 +0100
committerMario Vavti <mario@mariovavti.com>2025-02-20 11:44:54 +0100
commita5aab4c30e1a5ad6a0dc9042ddaa99cd0731d06b (patch)
treeea6ab0e8a6740a2489f68dff3f67c0eab613fd78
parentcf7613b3e078877966428ef7647f466ee50f5637 (diff)
parentfa01a2b34810ab77c17b46b2fff7ed5960aad2d5 (diff)
downloadvolse-hubzilla-a5aab4c30e1a5ad6a0dc9042ddaa99cd0731d06b.tar.gz
volse-hubzilla-a5aab4c30e1a5ad6a0dc9042ddaa99cd0731d06b.tar.bz2
volse-hubzilla-a5aab4c30e1a5ad6a0dc9042ddaa99cd0731d06b.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
-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);
}