mirror of
https://github.com/friendica/friendica
synced 2024-12-22 17:20:16 +00:00
Convert links with empty descriptions
This commit is contained in:
parent
05c4fd9daa
commit
5875830d1e
1 changed files with 3 additions and 0 deletions
|
@ -229,6 +229,9 @@ function item_post(App $a) {
|
|||
$body .= $att_bbcode;
|
||||
}
|
||||
|
||||
// Convert links with empty descriptions to links without an explicit description
|
||||
$body = preg_replace('(\[url=(.*?)\]\[\/url\])ism', '[url]$1[/url]', $body);
|
||||
|
||||
if (!empty($orig_post)) {
|
||||
$str_group_allow = $orig_post['allow_gid'];
|
||||
$str_contact_allow = $orig_post['allow_cid'];
|
||||
|
|
Loading…
Reference in a new issue