mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-06 14:33:17 -06:00
[bugfix] Allow blocked accounts to show in precise search (#2321)
This commit is contained in:
parent
4dc0547dc0
commit
dd4b0241ea
8 changed files with 390 additions and 146 deletions
|
|
@ -51,6 +51,11 @@ func (p *Processor) Lookup(
|
|||
// accident.
|
||||
const includeInstanceAccounts = true
|
||||
|
||||
// Since lookup is always for a specific
|
||||
// account, it's fine to include a blocked
|
||||
// account in the results.
|
||||
const includeBlockedAccounts = true
|
||||
|
||||
// Validate query.
|
||||
query = strings.TrimSpace(query)
|
||||
if query == "" {
|
||||
|
|
@ -108,6 +113,7 @@ func (p *Processor) Lookup(
|
|||
requestingAccount,
|
||||
[]*gtsmodel.Account{account},
|
||||
includeInstanceAccounts,
|
||||
includeBlockedAccounts,
|
||||
)
|
||||
if errWithCode != nil {
|
||||
return nil, errWithCode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue