From 4769c81e26b130fa1e2d9243ccbd090c1975300c Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 8 Feb 2015 10:48:04 +0100 Subject: [PATCH] GNU Social, Pump.io, Twitter: Improved check for posts that originally come from friendica to prevent mirroring them. --- convpath/convpath.php | 2 +- pumpio/pumpio.php | 2 +- statusnet/statusnet.php | 2 +- twitter/twitter.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/convpath/convpath.php b/convpath/convpath.php index 8deb46cf3..0aaeb5f92 100644 --- a/convpath/convpath.php +++ b/convpath/convpath.php @@ -4,7 +4,7 @@ * Description: Converts all internal paths according to the current scheme (http or https) * Version: 1.0 * Author: Michael Vogel - * + * Status: Unsupported */ function convpath_install() { diff --git a/pumpio/pumpio.php b/pumpio/pumpio.php index cb2ee0004..51e34e600 100644 --- a/pumpio/pumpio.php +++ b/pumpio/pumpio.php @@ -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; diff --git a/statusnet/statusnet.php b/statusnet/statusnet.php index f4dc75531..6713842ef 100644 --- a/statusnet/statusnet.php +++ b/statusnet/statusnet.php @@ -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; diff --git a/twitter/twitter.php b/twitter/twitter.php index 3919bf8bd..f00767036 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -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;