aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-06-08 16:24:02 +0000
committerMario <mario@mariovavti.com>2023-06-08 16:24:02 +0000
commitfb9a193c44ea55f3119fbbafe8b421c1a4087f18 (patch)
tree17b3e7c7e2cb6d39b04535ab62f7207f1b4e65fa
parent2739f1f3f085dc9416b645c0da16a88b9c51af73 (diff)
downloadvolse-hubzilla-fb9a193c44ea55f3119fbbafe8b421c1a4087f18.tar.gz
volse-hubzilla-fb9a193c44ea55f3119fbbafe8b421c1a4087f18.tar.bz2
volse-hubzilla-fb9a193c44ea55f3119fbbafe8b421c1a4087f18.zip
do not add deleted xchans for poco
-rw-r--r--include/socgraph.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/socgraph.php b/include/socgraph.php
index f08913ee2..49cc45d52 100644
--- a/include/socgraph.php
+++ b/include/socgraph.php
@@ -152,7 +152,7 @@ function poco_load($xchan = '', $url = null) {
// We've never seen this person before. Import them.
- if(($x !== false) && (! count($x))) {
+ if(!$x) {
if($address) {
if($network === 'zot6') {
$j = Zotfinger::exec($profile_url);
@@ -174,7 +174,6 @@ function poco_load($xchan = '', $url = null) {
$total ++;
-
$r = q("select * from xlink where xlink_xchan = '%s' and xlink_link = '%s' and xlink_static = 0 limit 1",
dbesc($xchan),
dbesc($hash)
@@ -431,7 +430,7 @@ function poco() {
intval($startIndex)
);
} else {
- $r = q("SELECT abook.*, xchan.* from abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d
+ $r = q("SELECT abook.*, xchan.* from abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d and xchan_deleted = 0
$sql_extra LIMIT %d OFFSET %d",
intval($channel_id),
intval($itemsPerPage),