]> git.mxchange.org Git - friendica.git/commitdiff
Detecting twitter profiles. This is added for the twitter import
authorMichael Vogel <icarus@dabo.de>
Mon, 14 Oct 2013 22:44:46 +0000 (00:44 +0200)
committerMichael Vogel <icarus@dabo.de>
Mon, 14 Oct 2013 22:44:46 +0000 (00:44 +0200)
include/html2plain.php

index 07de829656b9e4a6d2a8630b589dcae35093f3e5..3e4c0e8db061c0476b760fb77bd5f4ddf39a893d 100644 (file)
@@ -84,11 +84,14 @@ function collecturls($message) {
        foreach ($result as $treffer) {
                // A list of some links that should be ignored
                $list = array("/user/", "/tag/", "/group/", "/profile/", "/search?search=", "/search?tag=", "mailto:", "/u/", "/node/",
-                               "//facebook.com/profile.php?id=", "//plus.google.com/");
+                               "//facebook.com/profile.php?id=", "//plus.google.com/", "//twitter.com/");
                foreach ($list as $listitem)
                        if (strpos($treffer[1], $listitem) !== false)
                                $ignore = true;
 
+               if ((strpos($treffer[1], "//twitter.com/") !== false) and (strpos($treffer[1], "/status/") !== false))
+                               $ignore = false;
+
                if ((strpos($treffer[1], "//plus.google.com/") !== false) and (strpos($treffer[1], "/posts") !== false))
                                $ignore = false;