How to federate warnings?

In Lemmy we just merged a new warning feature, so that admins or mods can notify a user that something is not allowed, without taking a concrete action yet. Now the question is how this should be federated. Do any of the existing Fediverse platforms have such a feature? And which activity type do they send?

3 Likes

ideally Flag would be used for this

actor: <mod>
type: Flag
object: <user/post/1>
to: <user>
summary: "Your post has been flagged"
content: "This is a warning not to do something again"
1 Like

Flag is already used for reports (when a user tells admins that something may violate the rules). I can see that both are similar, but still need to be distinct. Do you know how Mastodon or other projects federate this?

i don’t think mastodon et al specifically warn users when they’ve been reported, but on the receiving side a Flag shouldn’t be an issue. Flag doesn’t have to be user → mod, it can also be mod → user. why do they need to be distinct?

i guess if you really needed to, you could define a Warn activity, but it seems unnecessary…

actor: <mod>
type: Warn
object: <user>
to: <user>
summary: "You have been warned"
content: "The things you posted are not okay"
inReplyTo:
  - <user/post/1>
  - <user/post/2>