mirror of
https://github.com/friendica/friendica
synced 2025-04-27 21:50:11 +00:00
Fixes issue 7914: Reshares got crumbled
This commit is contained in:
parent
1de81716b3
commit
23cdc9cec8
3 changed files with 6 additions and 7 deletions
|
@ -3833,7 +3833,7 @@ class Item extends BaseObject
|
|||
$body = $shared_item['body'];
|
||||
}
|
||||
|
||||
$item['body'] = preg_replace("/(.*?\[share.*?\]\s?).*?(\s?\[\/share\]\s?)/ism", '$1' . $body . '$2', $item['body']);
|
||||
$item['body'] = preg_replace("/\[share ([^\[\]]*)\].*\[\/share\]/ism", '[share $1]' . $body . '[/share]', $item['body']);
|
||||
unset($shared_item['body']);
|
||||
|
||||
return array_merge($item, $shared_item);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue