aboutsummaryrefslogtreecommitdiffstats
path: root/include/html2plain.php
diff options
context:
space:
mode:
authorMichael Vogel <icarus@dabo.de>2012-03-31 16:28:39 +0200
committerMichael Vogel <icarus@dabo.de>2012-03-31 16:28:39 +0200
commit59b45f7fc12027c387f04a2121ea398c1d534626 (patch)
treee717616428e620d5710983b83e68c0c704cba2f9 /include/html2plain.php
parentbdd275474044152a5d9a33ea6b8a8071b931d27e (diff)
downloadvolse-hubzilla-59b45f7fc12027c387f04a2121ea398c1d534626.tar.gz
volse-hubzilla-59b45f7fc12027c387f04a2121ea398c1d534626.tar.bz2
volse-hubzilla-59b45f7fc12027c387f04a2121ea398c1d534626.zip
Several improvements
Diffstat (limited to 'include/html2plain.php')
-rw-r--r--include/html2plain.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/html2plain.php b/include/html2plain.php
index fe0e3326e..7aa20500a 100644
--- a/include/html2plain.php
+++ b/include/html2plain.php
@@ -83,12 +83,15 @@ function collecturls($message) {
$urls = array();
foreach ($result as $treffer) {
// A list of some links that should be ignored
- $list = array("/user/", "/tag/", "/profile/", "/search?search=", "mailto:", "/u/", "/node/",
+ $list = array("/user/", "/tag/", "/group/", "/profile/", "/search?search=", "mailto:", "/u/", "/node/",
"//facebook.com/profile.php?id=", "//plus.google.com/");
foreach ($list as $listitem)
if (strpos($treffer[1], $listitem) !== false)
$ignore = true;
+ if ((strpos($treffer[1], "//plus.google.com/") !== false) and (strpos($treffer[1], "/posts") !== false))
+ $ignore = false;
+
if (!$ignore)
$urls[$treffer[1]] = $treffer[1];
}