mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-06-30 18:33:49 +00:00
Compare commits
No commits in common. "0eff72fa03b69bf137d068584f4bfa21be5aa554" and "26eea26f95ed09d6a01758e8ecac04823ccc74d3" have entirely different histories.
0eff72fa03
...
26eea26f95
|
@ -1506,10 +1506,6 @@ function bluesky_fetch_missing_post(string $uri, int $uid, int $fetch_uid, int $
|
|||
}
|
||||
|
||||
$class = bluesky_get_uri_class($uri);
|
||||
if (empty($class)) {
|
||||
return $fallback;
|
||||
}
|
||||
|
||||
$fetch_uri = $class->uri;
|
||||
|
||||
Logger::debug('Fetch missing post', ['level' => $level, 'uid' => $uid, 'uri' => $uri]);
|
||||
|
|
|
@ -614,7 +614,7 @@ function tumblr_send_legacy(array $b)
|
|||
$params['data'] = [];
|
||||
foreach ($media as $photo) {
|
||||
if ($photo['type'] == Post\Media::IMAGE) {
|
||||
if (DI::baseUrl()->isLocalUrl($photo['url']) && ($data = Photo::getResourceData($photo['url']))) {
|
||||
if (Network::isLocalLink($photo['url']) && ($data = Photo::getResourceData($photo['url']))) {
|
||||
$photo = Photo::selectFirst([], ["`resource-id` = ? AND `scale` > ?", $data['guid'], 0]);
|
||||
if (!empty($photo)) {
|
||||
$params['data'][] = Photo::getImageDataForPhoto($photo);
|
||||
|
|
Loading…
Reference in a new issue