@inherits LocalizableComponentBase
@* A new post or a reply, as the current persona. Through the Mastodon API it is plain text with a content warning, a
visibility and media (each uploaded first, with its alt text). A located post is text only, kept within its range of
this device's position and never federated; a group post goes to the group. Both of those go through /clientapi. *@
@if (form.HasContentWarning)
{
}
@if (form.Latitude is null)
{
@Localizer["Asking this device for its position…"]
}
else
{
@Localizer["Shown only to people within {0} km of here, never sent to other servers.", form.RangeKm.ToString("0")]
}
}
@if (!form.IsLocated && GroupId is null)
{
@foreach (var messageType in Enum.GetValues())
{
}
}
@if (!form.IsLocated && GroupId is null)
{
@* A label styled as a button opens the hidden file input. *@
@foreach (var mediaType in new[] { MediaType.Images, MediaType.Video, MediaType.Audio })
{
}
}
@if (InReplyTo is null && GroupId is null)
{
}