mirror of
https://github.com/friendica/friendica
synced 2025-04-26 19:10:11 +00:00
The "share" handling is improved
This commit is contained in:
parent
4930737cc4
commit
f54a886a5e
14 changed files with 74 additions and 111 deletions
|
@ -311,10 +311,8 @@ class Tag
|
|||
// Only remove the shared data from "real" reshares
|
||||
$shared = BBCode::fetchShareAttributes($body);
|
||||
if (!empty($shared['guid'])) {
|
||||
if (preg_match("/\s*\[share .*?\](.*?)\[\/share\]\s*/ism", $body, $matches)) {
|
||||
$share_body = $matches[1];
|
||||
}
|
||||
$body = preg_replace("/\s*\[share .*?\].*?\[\/share\]\s*/ism", '', $body);
|
||||
$share_body = $shared['shared'];
|
||||
$body = BBCode::removeSharedData($body);
|
||||
}
|
||||
|
||||
foreach (self::getFromBody($body, $tags) as $tag) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue