aboutsummaryrefslogtreecommitdiffstats
path: root/include/feedutils.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-06-25 18:07:07 -0700
committerzotlabs <mike@macgirvin.com>2017-06-25 18:07:07 -0700
commit07d6472eea377a9be7e35cca823307382a43df46 (patch)
tree4a880c31142fc77fae6a4298204c3ce6861cf84b /include/feedutils.php
parent6c771f84cedc71e7ffeecebe3e2fd7f912de3e7b (diff)
downloadvolse-hubzilla-07d6472eea377a9be7e35cca823307382a43df46.tar.gz
volse-hubzilla-07d6472eea377a9be7e35cca823307382a43df46.tar.bz2
volse-hubzilla-07d6472eea377a9be7e35cca823307382a43df46.zip
mastodon reshares can be either posts or comments; silence warning from guess_image_type when handed a URL to a non-existent resource.
Diffstat (limited to 'include/feedutils.php')
-rw-r--r--include/feedutils.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/feedutils.php b/include/feedutils.php
index 158ecb7a3..cc873876a 100644
--- a/include/feedutils.php
+++ b/include/feedutils.php
@@ -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);
}