]> git.mxchange.org Git - friendica-addons.git/commitdiff
Buffer: Remove all traces of Google+
authorMichael <heluecht@pirati.ca>
Wed, 3 Apr 2019 05:50:20 +0000 (05:50 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 3 Apr 2019 05:50:20 +0000 (05:50 +0000)
buffer/buffer.php

index 4705260c2cf6aa473e010d9ae6ff8df7e79b2036..4b8c578aee28f913f6dc9db3ffbef16d2dd6ee2c 100644 (file)
@@ -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("&#x00A0;", ENT_QUOTES, 'UTF-8'); // Send a special blank to identify the post through the "fromgplus" addon
                                }
 
                                $message = [];