mirror of
https://github.com/friendica/friendica
synced 2025-04-25 21:50:12 +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
|
@ -33,6 +33,7 @@ use Friendica\Database\DBA;
|
|||
use Friendica\DI;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Model\Post;
|
||||
use Friendica\Model\Tag;
|
||||
use Friendica\Model\User;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
|
@ -457,7 +458,7 @@ class Feed
|
|||
|
||||
$attachments[] = ["link" => $href, "type" => $type, "length" => $length];
|
||||
|
||||
$item["attach"] .= '[attach]href="' . $href . '" length="' . $length . '" type="' . $type . '"[/attach]';
|
||||
$item["attach"] .= Post\Media::getAttachElement($href, $length, $type);
|
||||
}
|
||||
|
||||
$taglist = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue