[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 ApiService ApiService;
|
||||||
@inject NavigationManager NavigationManager
|
@inject NavigationManager NavigationManager
|
||||||
@inject ComposeService ComposeService
|
@inject ComposeService ComposeService
|
||||||
|
@inject SessionService Session;
|
||||||
<CascadingValue Value="this">
|
<CascadingValue Value="this">
|
||||||
<div class="note-header">
|
<div class="note-header">
|
||||||
<NoteUserInfo
|
<NoteUserInfo
|
||||||
|
@ -32,7 +33,8 @@
|
||||||
Likes="Note.Likes"
|
Likes="Note.Likes"
|
||||||
IsLiked="Note.Liked"
|
IsLiked="Note.Liked"
|
||||||
Renotes="Note.Renotes"
|
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>
|
</CascadingValue>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue