forked from friendica/friendica-addons
Merge pull request #242 from annando/master
GNU Social, Pump.io, Twitter: Improved check for duplicated posts
This commit is contained in:
commit
f1b2dad867
4 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@
|
||||||
* Description: Converts all internal paths according to the current scheme (http or https)
|
* Description: Converts all internal paths according to the current scheme (http or https)
|
||||||
* Version: 1.0
|
* Version: 1.0
|
||||||
* Author: Michael Vogel <https://pirati.ca/profile/heluecht>
|
* Author: Michael Vogel <https://pirati.ca/profile/heluecht>
|
||||||
*
|
* Status: Unsupported
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function convpath_install() {
|
function convpath_install() {
|
||||||
|
|
|
@ -731,7 +731,7 @@ function pumpio_fetchtimeline(&$a, $uid) {
|
||||||
if ($receiver->id == "http://activityschema.org/collection/public")
|
if ($receiver->id == "http://activityschema.org/collection/public")
|
||||||
$public = true;
|
$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');
|
require_once('include/html2bbcode.php');
|
||||||
|
|
||||||
$_SESSION["authenticated"] = true;
|
$_SESSION["authenticated"] = true;
|
||||||
|
|
|
@ -838,7 +838,7 @@ function statusnet_fetchtimeline($a, $uid) {
|
||||||
if ($post->in_reply_to_status_id != "")
|
if ($post->in_reply_to_status_id != "")
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!strpos($post->source, $application_name)) {
|
if (!stristr($post->source, $application_name)) {
|
||||||
$_SESSION["authenticated"] = true;
|
$_SESSION["authenticated"] = true;
|
||||||
$_SESSION["uid"] = $uid;
|
$_SESSION["uid"] = $uid;
|
||||||
|
|
||||||
|
|
|
@ -751,7 +751,7 @@ function twitter_fetchtimeline($a, $uid) {
|
||||||
if ($first_time)
|
if ($first_time)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!strpos($post->source, $application_name)) {
|
if (!stristr($post->source, $application_name)) {
|
||||||
$_SESSION["authenticated"] = true;
|
$_SESSION["authenticated"] = true;
|
||||||
$_SESSION["uid"] = $uid;
|
$_SESSION["uid"] = $uid;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue