From 7b3581320b3ec0ba2c02ddd23d0baadc7badf334 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 10 Jun 2020 17:23:07 -0400 Subject: [PATCH] Add missing return variable while replacing tags in mod/item --- mod/item.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mod/item.php b/mod/item.php index 31336c4348..f3bdc30ecb 100644 --- a/mod/item.php +++ b/mod/item.php @@ -374,7 +374,7 @@ function item_post(App $a) { $only_to_forum = false; $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); $tagged = []; @@ -416,7 +416,6 @@ function item_post(App $a) { return $body; }); - $original_contact_id = $contact_id; if (!$toplevel_item_id && count($forum_contact) && ($private_forum || $only_to_forum)) {