[frontend] Allow renoting your own posts
This commit is contained in:
parent
427972498c
commit
165a2a69e0
1 changed files with 4 additions and 2 deletions
|
@ -3,6 +3,7 @@
|
|||
@inject ApiService ApiService;
|
||||
@inject NavigationManager NavigationManager
|
||||
@inject ComposeService ComposeService
|
||||
@inject SessionService Session;
|
||||
<CascadingValue Value="this">
|
||||
<div class="note-header">
|
||||
<NoteUserInfo
|
||||
|
@ -32,7 +33,8 @@
|
|||
Likes="Note.Likes"
|
||||
IsLiked="Note.Liked"
|
||||
Renotes="Note.Renotes"
|
||||
RenotePossible="@(Note.Visibility == NoteVisibility.Public || Note.Visibility == NoteVisibility.Home)"/>
|
||||
RenotePossible=
|
||||
"@(Note.Visibility == NoteVisibility.Public || Note.Visibility == NoteVisibility.Home || Session.Current?.Id == Note.User.Id)"/>
|
||||
}
|
||||
</CascadingValue>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue