@page "/person/{Address}"
@Address
@if (statuses == null) {
Loading...
}
else {
@bio
@foreach (var status in statuses) {
@status.Address
@status.HtmlContent
@status.RelativeTime
@if (!string.IsNullOrEmpty(status.ExternalUrl)) {
Respond
}
}
}
@code {
[Parameter]
public string Address { get; set; }
private Status[]? statuses;
private MarkupString bio;
protected override async Task OnInitializedAsync() {
RestService api = new RestService();
statuses = (await api.Statuslog(Address)).ToArray();
bio = await api.StatuslogBio(Address);
}
}