auto inline embed ostatus image attachments
This commit is contained in:
parent
2a21285037
commit
42c9f853a7
@ -168,7 +168,7 @@ class Connections extends \Zotlabs\Web\Controller {
|
||||
),
|
||||
|
||||
'archived' => array(
|
||||
'label' => t('Archived'),
|
||||
'label' => t('Archived/Unreachable'),
|
||||
'url' => z_root() . '/connections/archived',
|
||||
'sel' => ($archived) ? 'active' : '',
|
||||
'title' => t('Only show archived/unreachable connections'),
|
||||
|
@ -613,6 +613,10 @@ 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)) {
|
||||
$res['body'] .= "\n\n" . '[img]' . $link . '[/img]';
|
||||
}
|
||||
|
||||
$res['attach'][] = array('href' => $link, 'length' => $len, 'type' => $type, 'title' => $title );
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user