diff options
author | Mario <mario@mariovavti.com> | 2023-07-05 09:29:33 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-07-05 09:29:33 +0000 |
commit | d6e7d90197ec53db746ebbe5356ca8e3cd0f81cb (patch) | |
tree | e58f700d44491689ca8efb2077b6420f88f35b89 /Zotlabs/Lib/Activity.php | |
parent | aa73db0fe68f9ea6b6381e79ddad9c6fcd27a9a2 (diff) | |
download | volse-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.php | 2 |
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) ? [] : ''); |