diff --git a/Pleroma/Pleroma.cs b/Pleroma/Pleroma.cs index d9e8745..1585eb7 100644 --- a/Pleroma/Pleroma.cs +++ b/Pleroma/Pleroma.cs @@ -236,6 +236,7 @@ public class Pleroma /// ID of the status being quoted. /// ISO 639 language code for this status. /// Array of Attachment ids to be attached as media. + /// A list of nicknames (like lain@soykaf.club or lain on the local server) that will be used to determine who is going to be addressed by this post. Using this will disable the implicit addressing by mentioned names in the , only the people in the list will be addressed. The normal rules for post visibility are not affected by this and will still apply /// Visibility of the posted status. /// Thrown if something goes wrong while publishing the status. /// The newly published status if posting was successful. @@ -246,6 +247,7 @@ public class Pleroma string? quoting = null, string? language = null, MediaID[]? attachments = null, + string[]? to = null, StatusVisibility visibility = StatusVisibility.Public) { if (content == null && (attachments == null || attachments.Length == 0)) @@ -305,6 +307,15 @@ public class Pleroma writer.WriteEndArray(); } + if (to != null) + { + writer.WritePropertyName("to"); + writer.WriteStartArray(); + foreach (string name in to) + writer.WriteStringValue(name); + writer.WriteEndArray(); + } + if (visibility != StatusVisibility.Public) { writer.WritePropertyName("visibility");