This commit is contained in:
syuilo
2021-12-09 23:58:30 +09:00
parent 0abe2dfee0
commit c69b72e199
573 changed files with 3318 additions and 3318 deletions

View File

@@ -23,21 +23,21 @@ export const meta = {
noSuchUser: {
message: 'No such user.',
code: 'NO_SUCH_USER',
id: 'b851d00b-8ab1-4a56-8b1b-e24187cb48ef'
id: 'b851d00b-8ab1-4a56-8b1b-e24187cb48ef',
},
muteeIsYourself: {
message: 'Mutee is yourself.',
code: 'MUTEE_IS_YOURSELF',
id: 'f428b029-6b39-4d48-a1d2-cc1ae6dd5cf9'
id: 'f428b029-6b39-4d48-a1d2-cc1ae6dd5cf9',
},
notMuting: {
message: 'You are not muting that user.',
code: 'NOT_MUTING',
id: '5467d020-daa9-4553-81e1-135c0c35a96d'
id: '5467d020-daa9-4553-81e1-135c0c35a96d',
},
}
},
};
export default define(meta, async (ps, user) => {
@@ -57,7 +57,7 @@ export default define(meta, async (ps, user) => {
// Check not muting
const exist = await Mutings.findOne({
muterId: muter.id,
muteeId: mutee.id
muteeId: mutee.id,
});
if (exist == null) {
@@ -66,7 +66,7 @@ export default define(meta, async (ps, user) => {
// Delete mute
await Mutings.delete({
id: exist.id
id: exist.id,
});
publishUserEvent(user.id, 'unmute', mutee);