From d6e7d90197ec53db746ebbe5356ca8e3cd0f81cb Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 5 Jul 2023 09:29:33 +0000 Subject: fix regression after recent changes --- Zotlabs/Lib/Activity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zotlabs/Lib/Activity.php') 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) ? [] : ''); -- cgit v1.2.3