mirror of
https://github.com/friendica/friendica
synced 2024-11-09 23:02:54 +00:00
Don't show embedded page information for statusnet groups.
This commit is contained in:
parent
73f0496127
commit
b1338548b0
1 changed files with 2 additions and 2 deletions
|
@ -914,10 +914,10 @@ function add_page_info_to_body($body, $texturl = false, $no_photos = false) {
|
|||
$URLSearchString = "^\[\]";
|
||||
|
||||
// Adding these spaces is a quick hack due to my problems with regular expressions :)
|
||||
preg_match("/[^@#]\[url\]([$URLSearchString]*)\[\/url\]/ism", " ".$body, $matches);
|
||||
preg_match("/[^!#@]\[url\]([$URLSearchString]*)\[\/url\]/ism", " ".$body, $matches);
|
||||
|
||||
if (!$matches)
|
||||
preg_match("/[^@#]\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", " ".$body, $matches);
|
||||
preg_match("/[^!#@]\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", " ".$body, $matches);
|
||||
|
||||
// Convert urls without bbcode elements
|
||||
if (!$matches AND $texturl) {
|
||||
|
|
Loading…
Reference in a new issue