Twitter: Attachments are stripped from the body / Posting connectors: Add attachments to the body

This commit is contained in:
Michael 2021-05-01 08:59:14 +00:00
parent f0d88c6370
commit 85554bb6fd
9 changed files with 56 additions and 79 deletions

View file

@ -18,6 +18,7 @@ use Friendica\Core\Session;
use Friendica\Database\DBA;
use Friendica\Core\Worker;
use Friendica\DI;
use Friendica\Model\Post;
function diaspora_install()
{
@ -197,6 +198,8 @@ function diaspora_send(App $a, array &$b)
return;
}
$b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], $b['body']);
// Dont't post if the post doesn't belong to us.
// This is a check for forum postings
$self = DBA::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);