@page @using Humanizer @using OliverBooth.Data.Mastodon @using OliverBooth.Services @model Index @inject IMastodonService MastodonService @{ ViewData["Title"] = "Blog"; MastodonStatus latestStatus = MastodonService.GetLatestStatus(); bool doAprilFools = DateOnly.FromDateTime(DateTime.UtcNow) == new DateOnly(2024, 04, 01) || Environment.GetEnvironmentVariable("DO_AF") == "1"; } @if (doAprilFools) {

UNDER CONSTRUCTION

Coming soon WATCH THIS SPACE

} else {
@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")
}