Twitter: Attachments are stripped from the body / Posting connectors: Add attachments to the body
This commit is contained in:
parent
f0d88c6370
commit
85554bb6fd
9 changed files with 56 additions and 79 deletions
|
@ -12,7 +12,7 @@ use Friendica\Core\Hook;
|
|||
use Friendica\Core\Logger;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Util\Strings;
|
||||
use Friendica\Model\Post;
|
||||
use Friendica\Util\XML;
|
||||
|
||||
function wppost_install()
|
||||
|
@ -223,6 +223,8 @@ function wppost_send(&$a, &$b)
|
|||
return;
|
||||
}
|
||||
|
||||
$b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], $b['body']);
|
||||
|
||||
$wp_username = XML::escape(DI::pConfig()->get($b['uid'], 'wppost', 'wp_username'));
|
||||
$wp_password = XML::escape(DI::pConfig()->get($b['uid'], 'wppost', 'wp_password'));
|
||||
$wp_blog = DI::pConfig()->get($b['uid'],'wppost','wp_blog');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue