mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 01:23:41 +00:00
Merge pull request 'Bluesky: Fix probe mistake' (#1560) from heluecht/friendica-addons:bluesky-full-path into 2024.09-rc
Reviewed-on: https://git.friendi.ca/friendica/friendica-addons/pulls/1560
This commit is contained in:
commit
5638e7f065
1 changed files with 2 additions and 2 deletions
|
@ -181,7 +181,7 @@ function bluesky_item_by_link(array &$hookData)
|
|||
return;
|
||||
}
|
||||
|
||||
if (!preg_match('#/profile/(.+)/post/(.+)#', $hookData['uri'], $matches)) {
|
||||
if (!preg_match('#^' . BLUESKY_WEB . '/profile/(.+)/post/(.+)#', $hookData['uri'], $matches)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1833,7 +1833,7 @@ function bluesky_get_preferences(int $uid): ?stdClass
|
|||
|
||||
function bluesky_get_did_by_profile(string $url, int $uid): string
|
||||
{
|
||||
if (preg_match('#/profile/(.+)#', $url, $matches)) {
|
||||
if (preg_match('#^' . BLUESKY_WEB . '/profile/(.+)#', $url, $matches)) {
|
||||
$did = bluesky_get_did($matches[1], $uid);
|
||||
if (!empty($did)) {
|
||||
return $did;
|
||||
|
|
Loading…
Reference in a new issue