mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
facebook, statusnet and twitter: Now shared messages are clearly marked with the name of the original poster
twitter: When a post with a picture failes than the post is repeated without a picture fromgplus: Under certain circumenstances "fromgplus" generates an empty post that is blocking the cron hook - so now messages are mirrored anymore.
This commit is contained in:
parent
f424a9e974
commit
83f95acbbf
4 changed files with 33 additions and 25 deletions
|
@ -124,11 +124,16 @@ function fromgplus_post($a, $uid, $source, $body, $location) {
|
|||
$_REQUEST['body'] = $body;
|
||||
$_REQUEST['location'] = $location;
|
||||
|
||||
logger('fromgplus: posting for user '.$uid);
|
||||
if (($_REQUEST['title'] == "") AND ($_REQUEST['body'] == "")) {
|
||||
logger('fromgplus: empty post for user '.$uid." ".print_r($_REQUEST, true));
|
||||
return;
|
||||
}
|
||||
|
||||
require_once('mod/item.php');
|
||||
//print_r($_REQUEST);
|
||||
logger('fromgplus: posting for user '.$uid." ".print_r($_REQUEST, true));
|
||||
item_post($a);
|
||||
logger('fromgplus: done for user '.$uid);
|
||||
}
|
||||
|
||||
function fromgplus_html2bbcode($html) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue