aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-11-17 08:57:09 +0000
committerMario <mario@mariovavti.com>2022-12-02 18:47:40 +0100
commit00512579f3dfdf5f85a008e4e02d082e0c4c5556 (patch)
tree8c2a337796747dded059c0060e753eb813bdf3c1
parent697a74f37e78bf5e1df7b779c8912be8b6eb877e (diff)
downloadvolse-hubzilla-00512579f3dfdf5f85a008e4e02d082e0c4c5556.tar.gz
volse-hubzilla-00512579f3dfdf5f85a008e4e02d082e0c4c5556.tar.bz2
volse-hubzilla-00512579f3dfdf5f85a008e4e02d082e0c4c5556.zip
fix regression when adding feed contacts
(cherry picked from commit 5216c5b23213b1a97051fe7150086109c8a00df1)
-rw-r--r--Zotlabs/Lib/Connect.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Connect.php b/Zotlabs/Lib/Connect.php
index 4570627fc..802bbe0f5 100644
--- a/Zotlabs/Lib/Connect.php
+++ b/Zotlabs/Lib/Connect.php
@@ -109,10 +109,12 @@ class Connect {
if ($wf || $d) {
+ $xchan_hash = (($wf) ? $wf : $url);
+
// something was discovered - find the record which was just created.
$r = q("select * from xchan where ( xchan_hash = '%s' or xchan_url = '%s' or xchan_addr = '%s' ) $sql_options",
- dbesc($wf ?? $url),
+ dbesc($xchan_hash),
dbesc($url),
dbesc($url)
);