aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Libzot.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-10-11 19:35:48 +0000
committerMario <mario@mariovavti.com>2020-10-11 19:35:48 +0000
commit4d2507263dbeba3b945efab5f3fcfc676558ded1 (patch)
treeeef83a5b6c47056f2493da83c81a39d4f6cdd0c3 /Zotlabs/Lib/Libzot.php
parent4a671fe634a4a8463703dd661a238f5545f5a5e4 (diff)
downloadvolse-hubzilla-4d2507263dbeba3b945efab5f3fcfc676558ded1.tar.gz
volse-hubzilla-4d2507263dbeba3b945efab5f3fcfc676558ded1.tar.bz2
volse-hubzilla-4d2507263dbeba3b945efab5f3fcfc676558ded1.zip
find best identity
Diffstat (limited to 'Zotlabs/Lib/Libzot.php')
-rw-r--r--Zotlabs/Lib/Libzot.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php
index 44f1f399e..fb64626d6 100644
--- a/Zotlabs/Lib/Libzot.php
+++ b/Zotlabs/Lib/Libzot.php
@@ -1467,6 +1467,11 @@ class Libzot {
$result = [];
+ // Make sure we use the zot6 identity where applicable
+
+ $msg_arr['author_xchan'] = Activity::find_best_identity($msg_arr['author_xchan']);
+ $msg_arr['owner_xchan'] = Activity::find_best_identity($msg_arr['owner_xchan']);
+
// We've validated the sender. Now make sure that the sender is the owner or author
if(! $public) {