Merge pull request #8758 from MrPetovan/bug/8726-mention-parsing

Add missing return variable while replacing tags in mod/item
This commit is contained in:
Michael Vogel 2020-06-11 01:05:56 +02:00 committed by GitHub
commit fefd6439ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -374,7 +374,7 @@ function item_post(App $a) {
$only_to_forum = false; $only_to_forum = false;
$forum_contact = []; $forum_contact = [];
BBCode::performWithEscapedTags($body, ['noparse', 'pre', 'code'], function ($body) use ($profile_uid, $network, $str_contact_allow, &$inform, &$private_forum, &$private_id, &$only_to_forum, &$forum_contact) { $body = BBCode::performWithEscapedTags($body, ['noparse', 'pre', 'code'], function ($body) use ($profile_uid, $network, $str_contact_allow, &$inform, &$private_forum, &$private_id, &$only_to_forum, &$forum_contact) {
$tags = BBCode::getTags($body); $tags = BBCode::getTags($body);
$tagged = []; $tagged = [];
@ -416,7 +416,6 @@ function item_post(App $a) {
return $body; return $body;
}); });
$original_contact_id = $contact_id; $original_contact_id = $contact_id;
if (!$toplevel_item_id && count($forum_contact) && ($private_forum || $only_to_forum)) { if (!$toplevel_item_id && count($forum_contact) && ($private_forum || $only_to_forum)) {