* @param string $token JWT token extracted from the headers.
* @param string $secret API secret set in the settings.
*
+ * @return bool true on success
+ *
* @throws ApiAuthorizationException the token is not valid.
*/
public static function validateJwtToken($token, $secret)
) {
throw new ApiAuthorizationException('Invalid JWT issued time');
}
+
+ return true;
}
/**
{
$out['id'] = $link['id'];
// Not an internal link
- if ($link['url'][0] != '?') {
+ if (! is_note($link['url'])) {
$out['url'] = $link['url'];
} else {
$out['url'] = $indexUrl . $link['url'];