aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Activity.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-07-05 09:29:33 +0000
committerMario <mario@mariovavti.com>2023-07-05 09:29:33 +0000
commitd6e7d90197ec53db746ebbe5356ca8e3cd0f81cb (patch)
treee58f700d44491689ca8efb2077b6420f88f35b89 /Zotlabs/Lib/Activity.php
parentaa73db0fe68f9ea6b6381e79ddad9c6fcd27a9a2 (diff)
downloadvolse-hubzilla-d6e7d90197ec53db746ebbe5356ca8e3cd0f81cb.tar.gz
volse-hubzilla-d6e7d90197ec53db746ebbe5356ca8e3cd0f81cb.tar.bz2
volse-hubzilla-d6e7d90197ec53db746ebbe5356ca8e3cd0f81cb.zip
fix regression after recent changes
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r--Zotlabs/Lib/Activity.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index ce2a75d41..992ade200 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -1056,7 +1056,7 @@ class Activity {
$c = ((array_key_exists('channel_id', $p)) ? $p : channelx_by_hash($p['xchan_hash']));
- $id = (($c) ? channel_url($c) : $p['xchan_url']);
+ $id = (($c) ? channel_url($c) : ((filter_var($p['xchan_hash'], FILTER_VALIDATE_URL)) ? $p['xchan_hash'] : $p['xchan_url']));
$ret = (($extended) ? [] : '');