mirror of
https://github.com/wassname/talk.git
synced 2026-07-03 14:03:00 +08:00
18 lines
328 B
JavaScript
18 lines
328 B
JavaScript
const FlagAction = {
|
|
|
|
// Stored in the metadata, extract and return.
|
|
message({metadata: {message}}) {
|
|
return message;
|
|
},
|
|
reason({group_id}) {
|
|
return group_id;
|
|
},
|
|
user({user_id}, _, {loaders: {Users}}) {
|
|
if (user_id) {
|
|
return Users.getByID.load(user_id);
|
|
}
|
|
},
|
|
};
|
|
|
|
module.exports = FlagAction;
|