@page @using Humanizer @using OliverBooth.Common.Data.Mastodon @using OliverBooth.Common.Services @model Index @inject IMastodonService MastodonService @{ ViewData["Title"] = "Blog"; IMastodonStatus latestStatus = MastodonService.GetLatestStatus(); }
@Html.Raw(latestStatus.Content) @foreach (MediaAttachment attachment in latestStatus.MediaAttachments) { switch (attachment.Type) { case AttachmentType.Audio:

break; case AttachmentType.Video:

break; case AttachmentType.Image: case AttachmentType.GifV:

break; } }
@await Html.PartialAsync("_LoadingSpinner")