mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Reverted group flag code (#9784)
* Reverted group flag code * Reverted all flagging code * Added hyphens back
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
import { model as User } from '../models/user';
|
||||
import { getUserInfo } from './email';
|
||||
|
||||
export async function getAuthorEmailFromMessage (message) {
|
||||
let authorId = message.uuid;
|
||||
|
||||
if (authorId === 'system') {
|
||||
return 'system';
|
||||
}
|
||||
|
||||
let author = await User.findOne({_id: authorId}, {auth: 1}).exec();
|
||||
|
||||
if (author) {
|
||||
return getUserInfo(author, ['email']).email;
|
||||
} else {
|
||||
return 'Author Account Deleted';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user