X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FProtocol%2FSalmon.php;h=f8fa2f0540f66ec56e546e4a421c2c3f2e11a9ea;hb=51ee24f65220f4d5e3b0717767fa399e1a5a58e5;hp=1192781801bf284d8e4cb7e501348295e3a8129f;hpb=6fc9c6de3b99aa01212d29ea0d140334d4e38396;p=friendica.git diff --git a/src/Protocol/Salmon.php b/src/Protocol/Salmon.php index 1192781801..f8fa2f0540 100644 --- a/src/Protocol/Salmon.php +++ b/src/Protocol/Salmon.php @@ -22,6 +22,7 @@ class Salmon * @param string $uri Uniform Resource Identifier * @param string $keyhash encoded key * @return mixed + * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ public static function getKey($uri, $keyhash) { @@ -52,7 +53,7 @@ class Salmon } else { $ret[$x] = substr($ret[$x], 5); } - } elseif (normalise_link($ret[$x]) == 'http://') { + } elseif (Strings::normaliseLink($ret[$x]) == 'http://') { $ret[$x] = Network::fetchUrl($ret[$x]); } } @@ -86,6 +87,7 @@ class Salmon * @param string $url url * @param string $slap slap * @return integer + * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ public static function slapper($owner, $url, $slap) { @@ -205,6 +207,7 @@ class Salmon /** * @param string $pubkey public key * @return string + * @throws \Exception */ public static function salmonKey($pubkey) {