Feature Request (Plugins): Allow owncast_fediverse_post to send direct messages.
Share your bug report, feature request, or comment.
Currently, owncast_fediverse_post can only make public posts. However, it may be useful to allow it to send direct messages as well. For instance, Owncast currently has a way to do fediverse authentication that works by privately messaging fediverse users unique codes that they enter into Owncast to verify ownership of a fediverse account. It would useful to be able to recreate the same behavior in plugins, such as for creating an auth gate that uses fediverse DMs to authenticate users.
I believe the simplest way to go about this would be to add a boolean to the owncast_fediverse_post payload called private, or something similar. And when private is set to true, then everyone who is mentioned in the text payload (formatted as @[email protected]) gets that message privately sent to them, and no one else can see it.
Alternatively, the payload for owncast_fediverse_post could be replaced by a more complex JSON object, with fields for attachments, mentions, flags, etc. owncast_notify_fediverse takes a FediversePayload, so it might make more sense for owncast_fediverse_post to take the same thing, and to add a private bool to the object shape. If this is the route we'd rather go then I have opinions about this I would like to share in depth.
Source: owncast/owncast