Fix error in bluesky addon

This commit is contained in:
Art4 2024-11-29 22:36:05 +00:00 committed by Hypolite Petovan
parent fb9c10f8c5
commit 31198294c7

View file

@ -1563,7 +1563,7 @@ function bluesky_get_uri_class(string $uri): ?stdClass
}
$elements = explode(':', $uri);
if (empty($elements) || ($elements[0] != 'at')) {
if ($elements[0] !== 'at') {
$post = Post::selectFirstPost(['extid'], ['uri' => $uri]);
return bluesky_get_uri_class($post['extid'] ?? '');
}