[backend/masto-client] Fix StatusController quote lookup precedence
This commit is contained in:
parent
5d1e1ed05d
commit
dc7e45c7cb
1 changed files with 7 additions and 1 deletions
|
@ -442,7 +442,13 @@ public class StatusController(
|
|||
.FirstOrDefaultAsync()
|
||||
: await db.Notes
|
||||
.IncludeCommonProperties()
|
||||
.Where(p => p.Uri == quoteUri || p.Url == quoteUri)
|
||||
.Where(p => p.Uri == quoteUri)
|
||||
.EnsureVisibleFor(user)
|
||||
.FilterHidden(user, db, filterMutes: false)
|
||||
.FirstOrDefaultAsync() ??
|
||||
await db.Notes
|
||||
.IncludeCommonProperties()
|
||||
.Where(p => p.Url == quoteUri)
|
||||
.EnsureVisibleFor(user)
|
||||
.FilterHidden(user, db, filterMutes: false)
|
||||
.FirstOrDefaultAsync()
|
||||
|
|
Loading…
Add table
Reference in a new issue