Adding media attachments to Diaspora posts if they are only attached and not embedded in the body
This commit is contained in:
parent
ef43aa1a4d
commit
9afa3610cf
2 changed files with 35 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue