Increased speed for "follow" requests #1622

Merged
tobias merged 1 commit from heluecht/friendica-addons:follow-speed into 2025.07-rc 2025-12-01 18:09:46 +01:00
Showing only changes of commit 121f348462 - Show all commits

Increased speed for "follow" requests

Michael 2025-11-26 05:51:14 +00:00

View file

@ -138,7 +138,7 @@ function bluesky_follow(array &$hook_data)
}
DI::logger()->debug('Check if contact is bluesky', ['data' => $hook_data]);
$contact = DBA::selectFirst('contact', [], ['network' => Protocol::BLUESKY, 'url' => $hook_data['url'], 'uid' => [0, $hook_data['uid']]]);
$contact = DBA::selectFirst('contact', [], ['network' => Protocol::BLUESKY, 'nurl' => Strings::normaliseLink($hook_data['url']), 'uid' => [0, $hook_data['uid']]]);
if (empty($contact)) {
return;
}