Skip to content

Commit 993622c

Browse files
committed
WIP
1 parent 73aa600 commit 993622c

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/Actions/InstagramHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static function connector(): InstagramConnector
3535
if ($authenticator->hasExpired()) {
3636
$authenticator = $connector->refreshAccessToken($authenticator);
3737

38-
Cache::store(config('instagram.cache_store'))->put('instagram.authenticator', $serialized, now()->addDays(60));
38+
Cache::store(config('instagram.cache_store'))->put('instagram.authenticator', $authenticator->serialize(), now()->addDays(60));
3939
}
4040

4141
$connector->authenticate($authenticator);

src/Data/InstagramUser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct(
2727
public string $username,
2828
public string $name,
2929
public string $account_type,
30-
public string $profile_picture_url,
30+
public ?string $profile_picture_url,
3131
public int $followers_count,
3232
public int $follows_count,
3333
public int $media_count,

src/Http/Controllers/InstagramController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ public function callback(Request $request)
5050

5151
$json = $response->json();
5252

53-
ray($json);
54-
5553
Cache::store(config('instagram.cache_store'))->put('instagram.authenticated', $json, now()->addDays(60));
5654

5755
return response('Authenticated Instagram account: '.Arr::get($json, 'username'), 200);

0 commit comments

Comments
 (0)