mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 10:03:45 +00:00
Merge pull request #1302 from annando/quote
Add native quotes to the body upon posting
This commit is contained in:
commit
b84d05b602
9 changed files with 9 additions and 9 deletions
|
@ -202,7 +202,7 @@ function diaspora_send(App $a, array &$b)
|
|||
return;
|
||||
}
|
||||
|
||||
$b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], $b['body']);
|
||||
$b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], DI::contentItem()->addSharedPost($b));
|
||||
|
||||
// Dont't post if the post doesn't belong to us.
|
||||
// This is a check for forum postings
|
||||
|
|
|
@ -134,7 +134,7 @@ function dwpost_send(App $a, array &$b)
|
|||
return;
|
||||
}
|
||||
|
||||
$b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], $b['body']);
|
||||
$b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], DI::contentItem()->addSharedPost($b));
|
||||
|
||||
/*
|
||||
* dreamwidth post in the LJ user's timezone.
|
||||
|
|
|
@ -157,7 +157,7 @@ function libertree_send(App $a, array &$b)
|
|||
return;
|
||||
}
|
||||
|
||||
$b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], $b['body']);
|
||||
$b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], DI::contentItem()->addSharedPost($b));
|
||||
|
||||
$ltree_api_token = DI::pConfig()->get($b['uid'],'libertree','libertree_api_token');
|
||||
$ltree_url = DI::pConfig()->get($b['uid'],'libertree','libertree_url');
|
||||
|
|
|
@ -130,7 +130,7 @@ function ljpost_send(App $a, array &$b)
|
|||
return;
|
||||
}
|
||||
|
||||
$b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], $b['body']);
|
||||
$b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], DI::contentItem()->addSharedPost($b));
|
||||
|
||||
// LiveJournal post in the LJ user's timezone.
|
||||
// Hopefully the person's Friendica account
|
||||
|
|
|
@ -396,7 +396,7 @@ function pumpio_send(App $a, array &$b)
|
|||
|
||||
Logger::debug('pumpio_send: parameter ', $b);
|
||||
|
||||
$b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], $b['body']);
|
||||
$b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], DI::contentItem()->addSharedPost($b));
|
||||
|
||||
if ($b['parent'] != $b['id']) {
|
||||
// Looking if its a reply to a pumpio post
|
||||
|
|
|
@ -440,7 +440,7 @@ function statusnet_post_hook(App $a, array &$b)
|
|||
return;
|
||||
}
|
||||
|
||||
$b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], $b['body']);
|
||||
$b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], DI::contentItem()->addSharedPost($b));
|
||||
|
||||
$api = DI::pConfig()->get($b['uid'], 'statusnet', 'baseapi');
|
||||
$hostname = preg_replace("=https?://([\w\.]*)/.*=ism", "$1", $api);
|
||||
|
|
|
@ -331,7 +331,7 @@ function tumblr_send(App $a, array &$b) {
|
|||
return;
|
||||
}
|
||||
|
||||
$b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], $b['body']);
|
||||
$b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], DI::contentItem()->addSharedPost($b));
|
||||
|
||||
$oauth_token = DI::pConfig()->get($b['uid'], "tumblr", "oauth_token");
|
||||
$oauth_token_secret = DI::pConfig()->get($b['uid'], "tumblr", "oauth_token_secret");
|
||||
|
|
|
@ -643,7 +643,7 @@ function twitter_post_hook(App $a, array &$b)
|
|||
return;
|
||||
}
|
||||
|
||||
$b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], $b['body']);
|
||||
$b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], DI::contentItem()->addSharedPost($b));
|
||||
|
||||
$thr_parent = null;
|
||||
|
||||
|
|
|
@ -172,7 +172,7 @@ function wppost_send(App $a, array &$b)
|
|||
return;
|
||||
}
|
||||
|
||||
$b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], $b['body']);
|
||||
$b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], DI::contentItem()->addSharedPost($b));
|
||||
|
||||
$wp_username = XML::escape(DI::pConfig()->get($b['uid'], 'wppost', 'wp_username'));
|
||||
$wp_password = XML::escape(DI::pConfig()->get($b['uid'], 'wppost', 'wp_password'));
|
||||
|
|
Loading…
Reference in a new issue