diff options
author | Mario <mario@mariovavti.com> | 2022-11-17 08:57:09 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-12-02 18:47:40 +0100 |
commit | 00512579f3dfdf5f85a008e4e02d082e0c4c5556 (patch) | |
tree | 8c2a337796747dded059c0060e753eb813bdf3c1 | |
parent | 697a74f37e78bf5e1df7b779c8912be8b6eb877e (diff) | |
download | volse-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.php | 4 |
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) ); |