mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 15:30:39 +01:00
refactor: single line
This commit is contained in:
@@ -165,8 +165,7 @@ module.exports = function (Topics) {
|
|||||||
|
|
||||||
Topics.reply = async function (data) {
|
Topics.reply = async function (data) {
|
||||||
data = await plugins.hooks.fire('filter:topic.reply', data);
|
data = await plugins.hooks.fire('filter:topic.reply', data);
|
||||||
const { tid } = data;
|
const { tid, uid } = data;
|
||||||
const { uid } = data;
|
|
||||||
|
|
||||||
const [topicData, isAdmin] = await Promise.all([
|
const [topicData, isAdmin] = await Promise.all([
|
||||||
Topics.getTopicData(tid),
|
Topics.getTopicData(tid),
|
||||||
|
|||||||
Reference in New Issue
Block a user