Adding media attachments to Diaspora posts if they are only attached and not embedded in the body

This commit is contained in:
Michael 2021-04-26 10:49:57 +00:00
commit 9afa3610cf
2 changed files with 35 additions and 3 deletions

View file

@ -45,6 +45,7 @@ use Friendica\Model\Contact;
use Friendica\Model\Conversation;
use Friendica\Model\FileTag;
use Friendica\Model\Item;
use Friendica\Model\ItemURI;
use Friendica\Model\Notification;
use Friendica\Model\Photo;
use Friendica\Model\Post;
@ -613,6 +614,8 @@ function item_post(App $a) {
$datarray['origin'] = $origin;
$datarray['object'] = $object;
$datarray["uri-id"] = ItemURI::getIdByURI($datarray["uri"]);
/*
* These fields are for the convenience of addons...
* 'self' if true indicates the owner is posting on their own wall