From f4d59abe411438937889f3423c9c91403c3fcc2e Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 10 Oct 2021 21:13:30 +0000 Subject: streamline logic --- Zotlabs/Web/HTTPSig.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Zotlabs/Web') diff --git a/Zotlabs/Web/HTTPSig.php b/Zotlabs/Web/HTTPSig.php index 025629c0f..6905e7326 100644 --- a/Zotlabs/Web/HTTPSig.php +++ b/Zotlabs/Web/HTTPSig.php @@ -238,11 +238,12 @@ class HTTPSig { if (strpos($id, '#') === false) { $key = self::get_webfinger_key($id, $force); + if ($key) { + return $key; + } } - if (!$key) { - $key = self::get_activitystreams_key($id, $force); - } + $key = self::get_activitystreams_key($id, $force); return $key; -- cgit v1.2.3