]> git.mxchange.org Git - friendica-addons.git/blobdiff - fromgplus/fromgplus.php
fromgplus, gpluspost: Some more loop prevention added.
[friendica-addons.git] / fromgplus / fromgplus.php
index e28b3658cf0043535518b0c48835273394b3c10c..05cc8ec2344c56402872057774fac43b3bbcfa60 100644 (file)
@@ -327,7 +327,9 @@ function fromgplus_fetch($a, $uid) {
                                        else
                                                $location = "";
 
-                                       fromgplus_post($a, $uid, "Google+", $post, $location);
+                                       // Loop prevention - should be made better
+                                       if ($item->provider->title != "HootSuite")
+                                               fromgplus_post($a, $uid, "Google+", $post, $location);
                                        //fromgplus_post($a, $uid, $item->provider->title, $post, $location);
 
                                        break;
@@ -361,7 +363,9 @@ function fromgplus_fetch($a, $uid) {
                                        else
                                                $location = "";
 
-                                       fromgplus_post($a, $uid, "Google+", $post, $location);
+                                       // Loop prevention - should be made better
+                                       if ($item->provider->title != "HootSuite")
+                                               fromgplus_post($a, $uid, "Google+", $post, $location);
                                        //fromgplus_post($a, $uid, $item->provider->title, $post, $location);
                                        break;
                        }