mirror of
https://github.com/friendica/friendica
synced 2024-11-18 23:43:40 +00:00
Use the post uri-id for false reshares
This commit is contained in:
parent
3deb384c54
commit
f8ce59b411
1 changed files with 1 additions and 1 deletions
|
@ -2781,7 +2781,7 @@ class Item
|
||||||
|
|
||||||
if (!empty($shared_attachments)) {
|
if (!empty($shared_attachments)) {
|
||||||
$s = self::addVisualAttachments($shared_attachments, $item, $s, true);
|
$s = self::addVisualAttachments($shared_attachments, $item, $s, true);
|
||||||
$s = self::addLinkAttachment($shared_uri_id, $shared_attachments, $body, $s, true, []);
|
$s = self::addLinkAttachment($shared_uri_id ?: $item['uri-id'], $shared_attachments, $body, $s, true, []);
|
||||||
$s = self::addNonVisualAttachments($shared_attachments, $item, $s, true);
|
$s = self::addNonVisualAttachments($shared_attachments, $item, $s, true);
|
||||||
$body = preg_replace("/\s*\[share .*?\].*?\[\/share\]\s*/ism", '', $body);
|
$body = preg_replace("/\s*\[share .*?\].*?\[\/share\]\s*/ism", '', $body);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue