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.

This commit is contained in:
zotlabs 2017-06-26 16:54:28 -07:00
parent 5dc638c5b3
commit b0dd824dbc

View File

@ -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]';
}