Skip to content

Node.js based forum software built for the modern web

fix: extra ')'

Mats6f73261186fc
diff --git a/src/socket.io/flags.js b/src/socket.io/flags.js
index 6a2c8a2c83..d6f92e45ec 100644
--- a/src/socket.io/flags.js
+++ b/src/socket.io/flags.js
@@ -57,7 +57,7 @@ SocketFlags.appendNote = async function (socket, data) {
if (data.datetime && data.flagId) {
const note = await flags.getNote(data.flagId, data.datetime);
if (note.uid !== socket.uid) {
- throw new Error('[[error:no-privileges]]'));
+ throw new Error('[[error:no-privileges]]');
}
}