Adding media attachments to Diaspora posts if they are only attached and not embedded in the body
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user