mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 21:03:16 +00:00
Merge pull request #837 from annando/no-gplus
Buffer: Remove all traces of Google+
This commit is contained in:
commit
e301fa7d67
1 changed files with 0 additions and 24 deletions
|
@ -331,15 +331,6 @@ function buffer_send(App $a, array &$b)
|
|||
case 'facebook':
|
||||
$send = ($b["extid"] != Protocol::FACEBOOK);
|
||||
$limit = 0;
|
||||
$markup = false;
|
||||
$includedlinks = false;
|
||||
$htmlmode = 9;
|
||||
break;
|
||||
|
||||
case 'google':
|
||||
$send = ($b["extid"] != Protocol::GPLUS);
|
||||
$limit = 0;
|
||||
$markup = true;
|
||||
$includedlinks = false;
|
||||
$htmlmode = 9;
|
||||
break;
|
||||
|
@ -347,7 +338,6 @@ function buffer_send(App $a, array &$b)
|
|||
case 'twitter':
|
||||
$send = ($b["extid"] != Protocol::TWITTER);
|
||||
$limit = 280;
|
||||
$markup = false;
|
||||
$includedlinks = true;
|
||||
$htmlmode = 8;
|
||||
break;
|
||||
|
@ -355,7 +345,6 @@ function buffer_send(App $a, array &$b)
|
|||
case 'linkedin':
|
||||
$send = ($b["extid"] != Protocol::LINKEDIN);
|
||||
$limit = 700;
|
||||
$markup = false;
|
||||
$includedlinks = true;
|
||||
$htmlmode = 2;
|
||||
break;
|
||||
|
@ -366,17 +355,6 @@ function buffer_send(App $a, array &$b)
|
|||
|
||||
$item = $b;
|
||||
|
||||
// Markup for Google+
|
||||
if ($markup) {
|
||||
if ($item["title"] != "") {
|
||||
$item["title"] = "*" . $item["title"] . "*";
|
||||
}
|
||||
|
||||
$item["body"] = preg_replace("(\[b\](.*?)\[\/b\])ism", '*$1*', $item["body"]);
|
||||
$item["body"] = preg_replace("(\[i\](.*?)\[\/i\])ism", '_$1_', $item["body"]);
|
||||
$item["body"] = preg_replace("(\[s\](.*?)\[\/s\])ism", '-$1-', $item["body"]);
|
||||
}
|
||||
|
||||
$post = ItemContent::getPlaintextPost($item, $limit, $includedlinks, $htmlmode);
|
||||
Logger::log("buffer_send: converted message ".$b["id"]." result: ".print_r($post, true), Logger::DEBUG);
|
||||
|
||||
|
@ -393,8 +371,6 @@ function buffer_send(App $a, array &$b)
|
|||
// Buffer doesn't add links to Twitter (but pictures)
|
||||
if (($profile->service == "twitter") && isset($post["url"]) && ($post["type"] != "photo")) {
|
||||
$post["text"] .= " " . $post["url"];
|
||||
} elseif ($profile->service == "google") {
|
||||
$post["text"] .= html_entity_decode(" ", ENT_QUOTES, 'UTF-8'); // Send a special blank to identify the post through the "fromgplus" addon
|
||||
}
|
||||
|
||||
$message = [];
|
||||
|
|
Loading…
Reference in a new issue