Forgot my own h-card array structure my authorship package produces
This commit is contained in:
parent
2739a5c77f
commit
c4c644e653
1 changed files with 2 additions and 2 deletions
|
@ -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') {
|
||||||
|
|
Loading…
Add table
Reference in a new issue