@page @using Humanizer @using OliverBooth.Data.Mastodon @using OliverBooth.Services @model Index @inject IMastodonService MastodonService @{ ViewData["Title"] = "Blog"; MastodonStatus 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")