@using Iceshrimp.Frontend.Core.Services @using Iceshrimp.Shared.Schemas.Web @inject ApiService ApiService; @inject NavigationManager NavigationManager @inject ComposeService ComposeService
@if (Quote != null) {
} @if (!AsQuote) { @* FIXME: Allow renotes when the post is from the current user *@ }
@code { [Parameter] [EditorRequired] public required NoteBase Note { get; set; } [Parameter] public bool Indented { get; set; } [Parameter] public NoteBase? Quote { get; set; } [Parameter] public bool AsQuote { get; set; } private bool CheckLen() { return Note.Text?.Length > 500; } private void OpenQuote() { NavigationManager.NavigateTo($"/notes/{Quote!.Id}"); } }