aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2021-06-02 09:41:57 +0200
committerMario Vavti <mario@mariovavti.com>2021-06-02 09:41:57 +0200
commitb3df15a3c6e017ce3858ee484c6d2d70a5f18a17 (patch)
treeec5f6a88399e572bce6c11d8481e61ce7e32f31f /Zotlabs/Lib
parent3d2b923102726d91508aa03edd0459948af704c6 (diff)
downloadvolse-hubzilla-b3df15a3c6e017ce3858ee484c6d2d70a5f18a17.tar.gz
volse-hubzilla-b3df15a3c6e017ce3858ee484c6d2d70a5f18a17.tar.bz2
volse-hubzilla-b3df15a3c6e017ce3858ee484c6d2d70a5f18a17.zip
fix regression where authors from non zot6, activitypub networks got dismissed (e.g. relayed diaspora comments)
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/ActivityStreams.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Lib/ActivityStreams.php b/Zotlabs/Lib/ActivityStreams.php
index a5fb4a756..2324a8136 100644
--- a/Zotlabs/Lib/ActivityStreams.php
+++ b/Zotlabs/Lib/ActivityStreams.php
@@ -304,11 +304,12 @@ class ActivityStreams {
// SECURITY: If we have already stored the actor profile, re-generate it
// from cached data - don't refetch it from the network
- $r = q("select * from xchan join hubloc on xchan_hash = hubloc_hash where hubloc_network in ('zot6', 'activitypub') and hubloc_id_url = '%s'",
+ $r = q("select * from xchan join hubloc on xchan_hash = hubloc_hash where hubloc_id_url = '%s'",
dbesc($x)
);
if ($r) {
- $y = Activity::encode_person($r[0]);
+ $r = Libzot::zot_record_preferred($r);
+ $y = Activity::encode_person($r);
$y['cached'] = true;
return $y;
}