diff options
author | friendica <info@friendica.com> | 2012-04-08 05:19:54 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-04-08 05:19:54 -0700 |
commit | c3867f4ce4249079e1dba04ebfdc74457afbee7b (patch) | |
tree | 72be41253ec910e6488e34bb5181c359036da9dd /include/html2plain.php | |
parent | e3b2ac0735c908357dafb8670339fd34d3e2e6c0 (diff) | |
parent | ce0eac44b5035b8f46259b6665826a94b633ec4e (diff) | |
download | volse-hubzilla-c3867f4ce4249079e1dba04ebfdc74457afbee7b.tar.gz volse-hubzilla-c3867f4ce4249079e1dba04ebfdc74457afbee7b.tar.bz2 volse-hubzilla-c3867f4ce4249079e1dba04ebfdc74457afbee7b.zip |
Merge pull request #214 from annando/master
API, Locking, some changes to "vier"
Diffstat (limited to 'include/html2plain.php')
-rw-r--r-- | include/html2plain.php | 5 |
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]; } |