mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 21:27:23 +01:00
fix(tests): post merge cleanup
This commit is contained in:
@@ -148,21 +148,6 @@ api.postChat = {
|
||||
const authorEmail = getUserInfo(user, ['email']).email;
|
||||
const groupUrl = getGroupUrl(group);
|
||||
|
||||
const report = [
|
||||
{ name: 'MESSAGE_TIME', content: (new Date()).toString() },
|
||||
{ name: 'MESSAGE_TEXT', content: message },
|
||||
|
||||
{ name: 'AUTHOR_USERNAME', content: user.profile.name },
|
||||
{ name: 'AUTHOR_UUID', content: user._id },
|
||||
{ name: 'AUTHOR_EMAIL', content: authorEmail },
|
||||
{ name: 'AUTHOR_MODAL_URL', content: `/profile/${user._id}` },
|
||||
|
||||
{ name: 'GROUP_NAME', content: group.name },
|
||||
{ name: 'GROUP_TYPE', content: group.type },
|
||||
{ name: 'GROUP_ID', content: group._id },
|
||||
{ name: 'GROUP_URL', content: groupUrl },
|
||||
];
|
||||
|
||||
// Slack the mods
|
||||
slack.sendSlurNotification({
|
||||
authorEmail,
|
||||
@@ -223,21 +208,6 @@ api.postChat = {
|
||||
const authorEmail = getUserInfo(user, ['email']).email;
|
||||
const groupUrl = getGroupUrl(group);
|
||||
|
||||
const report = [
|
||||
{ name: 'MESSAGE_TIME', content: (new Date()).toString() },
|
||||
{ name: 'MESSAGE_TEXT', content: message },
|
||||
|
||||
{ name: 'AUTHOR_USERNAME', content: user.profile.name },
|
||||
{ name: 'AUTHOR_UUID', content: user._id },
|
||||
{ name: 'AUTHOR_EMAIL', content: authorEmail },
|
||||
{ name: 'AUTHOR_MODAL_URL', content: `/profile/${user._id}` },
|
||||
|
||||
{ name: 'GROUP_NAME', content: group.name },
|
||||
{ name: 'GROUP_TYPE', content: group.type },
|
||||
{ name: 'GROUP_ID', content: group._id },
|
||||
{ name: 'GROUP_URL', content: groupUrl },
|
||||
];
|
||||
|
||||
// Slack the mods
|
||||
slack.sendShadowMutedPostNotification({
|
||||
authorEmail,
|
||||
@@ -438,10 +408,6 @@ api.clearChatFlags = {
|
||||
message.flagCount = 0;
|
||||
await message.save();
|
||||
|
||||
const adminEmailContent = getUserInfo(user, ['email']).email;
|
||||
const authorEmail = getAuthorEmailFromMessage(message);
|
||||
const groupUrl = getGroupUrl(group);
|
||||
|
||||
res.respond(200, {});
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user