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:
parent
5dc638c5b3
commit
b0dd824dbc
@ -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]';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user