From c4c644e653a585f160c64194bb31c40a2b427f01 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Thu, 20 Oct 2016 18:16:45 +0100 Subject: [PATCH] Forgot my own h-card array structure my authorship package produces --- app/Jobs/SaveProfileImage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Jobs/SaveProfileImage.php b/app/Jobs/SaveProfileImage.php index 2a14bd6d..277285a2 100644 --- a/app/Jobs/SaveProfileImage.php +++ b/app/Jobs/SaveProfileImage.php @@ -38,8 +38,8 @@ class SaveProfileImage implements ShouldQueue } catch (AuthorshipParserException $e) { return; } - $photo = $author['properties'][0]['photo'][0]; - $home = $author['properties'][0]['url'][0]; + $photo = $author['properties']['photo'][0]; + $home = $author['properties']['url'][0]; //dont save pbs.twimg.com links if (parse_url($photo, PHP_URL_HOST) != 'pbs.twimg.com' && parse_url($photo, PHP_URL_HOST) != 'twitter.com') {