mirror of
https://github.com/friendica/friendica
synced 2025-04-25 09:50:11 +00:00
The post-media table now works with the "attach" field as well
This commit is contained in:
parent
e5c145e73c
commit
8485c8c357
7 changed files with 131 additions and 22 deletions
|
@ -36,6 +36,7 @@ use Friendica\Model\Contact;
|
|||
use Friendica\Model\Conversation;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Model\ItemURI;
|
||||
use Friendica\Model\Post;
|
||||
use Friendica\Model\Tag;
|
||||
use Friendica\Model\User;
|
||||
use Friendica\Network\Probe;
|
||||
|
@ -1126,7 +1127,8 @@ class OStatus
|
|||
if (!isset($attribute['length'])) {
|
||||
$attribute['length'] = "0";
|
||||
}
|
||||
$item["attach"] .= '[attach]href="'.$attribute['href'].'" length="'.$attribute['length'].'" type="'.$attribute['type'].'" title="'.($attribute['title'] ?? '') .'"[/attach]';
|
||||
$item["attach"] .= Post\Media::getAttachElement($attribute['href'],
|
||||
$attribute['length'], $attribute['type'], $attribute['title'] ?? '');
|
||||
}
|
||||
break;
|
||||
case "related":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue