[backend/database] Fix Note.IsQuote not handling cw-only renotes correctly
This commit is contained in:
parent
0bbdbbe7f3
commit
c4763e9c67
1 changed files with 2 additions and 1 deletions
|
@ -269,7 +269,8 @@ public class Note : IEntity
|
|||
|
||||
[NotMapped]
|
||||
[Projectable]
|
||||
public bool IsQuote => (RenoteId != null || Renote != null) && (Text != null || HasPoll || FileIds.Count > 0);
|
||||
public bool IsQuote => (RenoteId != null || Renote != null) &&
|
||||
(Text != null || Cw != null || HasPoll || FileIds.Count > 0);
|
||||
|
||||
[ForeignKey(nameof(UserId))]
|
||||
[InverseProperty(nameof(Tables.User.Notes))]
|
||||
|
|
Loading…
Add table
Reference in a new issue