]> git.mxchange.org Git - friendica-addons.git/commitdiff
GNU Social, Pump.io, Twitter: Improved check for posts that originally come from...
authorMichael Vogel <icarus@dabo.de>
Sun, 8 Feb 2015 09:48:04 +0000 (10:48 +0100)
committerMichael Vogel <icarus@dabo.de>
Sun, 8 Feb 2015 09:48:04 +0000 (10:48 +0100)
convpath/convpath.php
pumpio/pumpio.php
statusnet/statusnet.php
twitter/twitter.php

index 8deb46cf346cbc09c6a2e979f28b3476f8ed258f..0aaeb5f92e7dddd92a8f32c6c0240e5ef6edd17f 100644 (file)
@@ -4,7 +4,7 @@
  * Description: Converts all internal paths according to the current scheme (http or https)
  * Version: 1.0
  * Author: Michael Vogel <https://pirati.ca/profile/heluecht>
- * 
+ * Status: Unsupported
  */
 
 function convpath_install() {
index cb2ee000431c157ceed463ece56d55f98e58f132..51e34e60041e7f4bd27d19f0ac98f25122185461 100644 (file)
@@ -731,7 +731,7 @@ function pumpio_fetchtimeline(&$a, $uid) {
                                        if ($receiver->id == "http://activityschema.org/collection/public")
                                                $public = true;
 
-                       if ($public AND !strstr($post->generator->displayName, $application_name)) {
+                       if ($public AND !stristr($post->generator->displayName, $application_name)) {
                                require_once('include/html2bbcode.php');
 
                                $_SESSION["authenticated"] = true;
index f4dc75531c6987e34a598198ba5bc07e92da93b0..6713842ef9c60965819bf816123ef705f85927eb 100644 (file)
@@ -838,7 +838,7 @@ function statusnet_fetchtimeline($a, $uid) {
                if ($post->in_reply_to_status_id != "")
                        continue;
 
-               if (!strpos($post->source, $application_name)) {
+               if (!stristr($post->source, $application_name)) {
                        $_SESSION["authenticated"] = true;
                        $_SESSION["uid"] = $uid;
 
index 3919bf8bd16411c7d64bdd5c4a159c308217b8b1..f00767036d195534e83a256d656b0ca9c9086ed6 100644 (file)
@@ -751,7 +751,7 @@ function twitter_fetchtimeline($a, $uid) {
                if ($first_time)
                        continue;
 
-               if (!strpos($post->source, $application_name)) {
+               if (!stristr($post->source, $application_name)) {
                        $_SESSION["authenticated"] = true;
                        $_SESSION["uid"] = $uid;