User avatar
🪨 @Varpie@peculiar.florist
3y
If you're a admin/mod, there are a few "hidden features" (as in, not completely implemented ​:akko_why:​) you may be interested in.

I looked into the
admin/send-mod-mail endpoint, that is documented in the API but doesn't seem to be used, and made the following plugin, that allows you to send a notification and email to a specific user:
/// @ 0.1
### {
    name: "Mod message"
    version: "0.1"
    author: "@Varpie@peculiar.florist"
    description: "A plugin adding a menu option to profiles, allowing mods to send a notification and email (if an email is set on the profile) to a specific user."
}

Plugin:register_user_action("Send mod mail" @(user) {
    $message <- readline("Message")
    Mk:api("admin/send-mod-mail" {userId: user.id, comment: message})
})


This plugin adds a menu option on user's profiles, and allows you to input a message that will be sent. The notification looks like the attached image (note that the notification uses a
MkNotification element, which is supposed to have attached content, but this only shows the notification message, so the text is slightly greyed out and ends with : )

For obvious reasons, this is only usable by admins and mods, and it is not federated, so you won't be able to send a moderation notice to someone from another server.
0
1
0
0