diff options
author | zotlabs <mike@macgirvin.com> | 2017-06-26 16:54:28 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-06-26 16:54:28 -0700 |
commit | b0dd824dbc25e8ec12011cbc334471fc47a87735 (patch) | |
tree | e40a0c86f9b64fdaf1dfcd1f8722b1425133daf1 /include | |
parent | 5dc638c5b38883934221b3575b7d21e32502512b (diff) | |
download | volse-hubzilla-b0dd824dbc25e8ec12011cbc334471fc47a87735.tar.gz volse-hubzilla-b0dd824dbc25e8ec12011cbc334471fc47a87735.tar.bz2 volse-hubzilla-b0dd824dbc25e8ec12011cbc334471fc47a87735.zip |
add ostatus attached photos (inline to the post body) even if there's a link to the photo in the post but it isn't wrapped in an img tag.
Diffstat (limited to 'include')
-rw-r--r-- | include/feedutils.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/feedutils.php b/include/feedutils.php index cc873876a..b785bd64a 100644 --- a/include/feedutils.php +++ b/include/feedutils.php @@ -603,7 +603,7 @@ function get_atom_elements($feed, $item, &$author) { if(! $type) $type = 'application/octet-stream'; - if(($ostatus_protocol) && (strpos($type,'image') === 0) && (strpos($res['body'],$link) === false) && (strpos($link,'http') === 0)) { + if(($ostatus_protocol) && (strpos($type,'image') === 0) && (strpos($res['body'], ']' . $link . '[/img]') === false) && (strpos($link,'http') === 0)) { $res['body'] .= "\n\n" . '[img]' . $link . '[/img]'; } |