From c89abdb74ce1dc1782393e02a65478edd5716f87 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 22 Aug 2023 09:01:12 -0400 Subject: [PATCH] [bluesky] Fix double dollar sign in bluesky_fetch_notifications --- bluesky/bluesky.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bluesky/bluesky.php b/bluesky/bluesky.php index 5ca9c951..c9665872 100644 --- a/bluesky/bluesky.php +++ b/bluesky/bluesky.php @@ -798,12 +798,12 @@ function bluesky_upload_blob(int $uid, array $photo): ?stdClass $picture = new Image($content, $photo['type']); $height = $picture->getHeight(); - $width = $picture->getWidth(); + $width = $picture->getWidth(); $size = strlen($content); $picture = Photo::resizeToFileSize($picture, BLUESKY_IMAGE_SIZE[$retrial]); $new_height = $picture->getHeight(); - $new_width = $picture->getWidth(); + $new_width = $picture->getWidth(); $content = $picture->asString(); $new_size = strlen($content); @@ -917,7 +917,7 @@ function bluesky_fetch_notifications(int $uid) $data = Item::insert($item); Logger::debug('Got like', ['uid' => $uid, 'result' => $data, 'uri' => $uri]); } else { - Logger::info('Thread parent not found', ['uid' => $uid, 'parent' => $$item['thr-parent'], 'uri' => $uri]); + Logger::info('Thread parent not found', ['uid' => $uid, 'parent' => $item['thr-parent'], 'uri' => $uri]); } break; @@ -1274,7 +1274,7 @@ function bluesky_fetch_missing_post(string $uri, int $uid, int $causer, int $lev if (++$level > 100) { Logger::info('Recursion level too deep', ['level' => $level, 'uid' => $uid, 'uri' => $uri, 'fallback' => $fallback]); // When the level is too deep we will fallback to the parent uri. - // Allthough the threading won't be correct, we at least had stored all posts and won't try again + // Allthough the threading won't be correct, we at least had stored all posts and won't try again return $fallback; } @@ -1287,8 +1287,8 @@ function bluesky_fetch_missing_post(string $uri, int $uid, int $causer, int $lev Logger::info('Thread was not fetched', ['level' => $level, 'uid' => $uid, 'uri' => $uri, 'fallback' => $fallback]); return $fallback; } - - Logger::debug('Reply count', ['replies' => $data->thread->post->replyCount, 'level' => $level, 'uid' => $uid, 'uri' => $uri]); + + Logger::debug('Reply count', ['replies' => $data->thread->post->replyCount, 'level' => $level, 'uid' => $uid, 'uri' => $uri]); if ($causer != 0) { $cdata = Contact::getPublicAndUserContactID($causer, $uid); @@ -1587,4 +1587,4 @@ function bluesky_get(int $uid, string $url, string $accept_content = HttpClientA } return json_decode($curlResult->getBody()); -} \ No newline at end of file +} -- 2.39.5