aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Libzot.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-03-02 10:13:54 +0000
committerMario <mario@mariovavti.com>2023-03-02 10:13:54 +0000
commitb457c66bf9320d35427ce82aeeefed387ebbba38 (patch)
treeb98043ea8b9c0d14e62df27efa352ebac9784a6b /Zotlabs/Lib/Libzot.php
parentca0bd3ed3251e2558dc4a53abed417dd9da6244d (diff)
downloadvolse-hubzilla-b457c66bf9320d35427ce82aeeefed387ebbba38.tar.gz
volse-hubzilla-b457c66bf9320d35427ce82aeeefed387ebbba38.tar.bz2
volse-hubzilla-b457c66bf9320d35427ce82aeeefed387ebbba38.zip
do not include deleted hublocs when looking for author
Diffstat (limited to 'Zotlabs/Lib/Libzot.php')
-rw-r--r--Zotlabs/Lib/Libzot.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php
index 8b4662bee..f22b475be 100644
--- a/Zotlabs/Lib/Libzot.php
+++ b/Zotlabs/Lib/Libzot.php
@@ -1243,7 +1243,7 @@ class Libzot {
return;
}
- $r = q("select hubloc_hash, hubloc_network, hubloc_url from hubloc where hubloc_id_url = '%s' order by hubloc_id desc",
+ $r = q("select hubloc_hash, hubloc_network, hubloc_url from hubloc where hubloc_id_url = '%s' and hubloc_deleted = 0 order by hubloc_id desc",
dbesc($AS->actor['id'])
);
@@ -1251,7 +1251,7 @@ class Libzot {
// 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' order by hubloc_id desc",
+ $r = q("select hubloc_hash, hubloc_network, hubloc_url from hubloc where hubloc_id_url = '%s' and hubloc_deleted = 0 order by hubloc_id desc",
dbesc($AS->actor['id'])
);
}