diff options
author | Mario <mario@mariovavti.com> | 2022-02-28 10:16:19 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-02-28 10:16:19 +0000 |
commit | 0cc6f66a26181319738db8150074f62b3684f97e (patch) | |
tree | da50b9238b562ebb65b676e38e33a18b94dc9ac6 /Zotlabs/Lib/Libzot.php | |
parent | 1893368aa51c1c703f760f9f15bacb1bf42c750d (diff) | |
download | volse-hubzilla-0cc6f66a26181319738db8150074f62b3684f97e.tar.gz volse-hubzilla-0cc6f66a26181319738db8150074f62b3684f97e.tar.bz2 volse-hubzilla-0cc6f66a26181319738db8150074f62b3684f97e.zip |
make gprobe deal with URLs, fix issue in get_actor_protocols and fix missing author issue if wall2wall comment arrives and author is not yet known
Diffstat (limited to 'Zotlabs/Lib/Libzot.php')
-rw-r--r-- | Zotlabs/Lib/Libzot.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php index 83536a033..52d08e000 100644 --- a/Zotlabs/Lib/Libzot.php +++ b/Zotlabs/Lib/Libzot.php @@ -1227,6 +1227,16 @@ class Libzot { dbesc($AS->actor['id']) ); + if (! $r) { + // Author is unknown to this site. Perform channel discovery and try again. + $z = discover_by_webbie($AS->actor['id']); + if ($z) { + $r = q("select hubloc_hash, hubloc_network, hubloc_url from hubloc where hubloc_id_url = '%s'", + dbesc($AS->actor['id']) + ); + } + } + if ($r) { $r = self::zot_record_preferred($r); $arr['author_xchan'] = $r['hubloc_hash']; |