mastodon reshares can be either posts or comments; silence warning from guess_image_type when handed a URL to a non-existent resource.

This commit is contained in:
zotlabs
2017-06-25 18:07:07 -07:00
parent 6c771f84ce
commit 07d6472eea
2 changed files with 12 additions and 2 deletions

View File

@@ -691,7 +691,7 @@ function get_atom_elements($feed, $item, &$author) {
if(array_key_exists('verb',$res) && $res['verb'] === ACTIVITY_SHARE
&& array_key_exists('obj_type',$res) && $res['obj_type'] === ACTIVITY_OBJ_NOTE) {
&& array_key_exists('obj_type',$res) && in_array($res['obj_type'], [ ACTIVITY_OBJ_NOTE, ACTIVITY_OBJ_COMMENT ] )) {
feed_get_reshare($res,$item);
}