mirror of
https://github.com/friendica/friendica
synced 2025-04-26 21:50:11 +00:00
Improve the look of fetched feeds and the BBCode processing of attachments
This commit is contained in:
parent
db65601828
commit
0733ae6aae
3 changed files with 68 additions and 52 deletions
|
@ -1020,6 +1020,9 @@ class Transmitter
|
|||
{
|
||||
$attachments = [];
|
||||
|
||||
// Currently deactivated, since it creates side effects on Mastodon and Pleroma.
|
||||
// It will be reactivated, once this cleared.
|
||||
/*
|
||||
$attach_data = BBCode::getAttachmentData($item['body']);
|
||||
if (!empty($attach_data['url'])) {
|
||||
$attachment = ['type' => 'Page',
|
||||
|
@ -1047,7 +1050,7 @@ class Transmitter
|
|||
|
||||
$attachments[] = $attachment;
|
||||
}
|
||||
|
||||
*/
|
||||
$arr = explode('[/attach],', $item['attach']);
|
||||
if (count($arr)) {
|
||||
foreach ($arr as $r) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue