Forgot my own h-card array structure my authorship package produces

This commit is contained in:
Jonny Barnes 2016-10-20 18:16:45 +01:00
parent 2739a5c77f
commit c4c644e653

View file

@ -38,8 +38,8 @@ class SaveProfileImage implements ShouldQueue
} catch (AuthorshipParserException $e) { } catch (AuthorshipParserException $e) {
return; return;
} }
$photo = $author['properties'][0]['photo'][0]; $photo = $author['properties']['photo'][0];
$home = $author['properties'][0]['url'][0]; $home = $author['properties']['url'][0];
//dont save pbs.twimg.com links //dont save pbs.twimg.com links
if (parse_url($photo, PHP_URL_HOST) != 'pbs.twimg.com' if (parse_url($photo, PHP_URL_HOST) != 'pbs.twimg.com'
&& parse_url($photo, PHP_URL_HOST) != 'twitter.com') { && parse_url($photo, PHP_URL_HOST) != 'twitter.com') {