aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Libzot.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Lib/Libzot.php')
-rw-r--r--Zotlabs/Lib/Libzot.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php
index f16f5258a..fb64626d6 100644
--- a/Zotlabs/Lib/Libzot.php
+++ b/Zotlabs/Lib/Libzot.php
@@ -1212,6 +1212,10 @@ class Libzot {
$arr['author_xchan'] = $r['hubloc_hash'];
}
+ if (! $arr['author_xchan']) {
+ logger('No author!');
+ return;
+ }
$s = q("select hubloc_hash from hubloc where hubloc_id_url = '%s' and hubloc_network = 'zot6' limit 1",
dbesc($env['sender'])
@@ -1463,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) {