mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-30 05:33:32 -06:00
fiddle with it! (that's what she said)
This commit is contained in:
parent
39339dc832
commit
1bfc1aa7d1
10 changed files with 218 additions and 199 deletions
|
|
@ -564,10 +564,15 @@ func (p *Processor) accountsByURI(
|
|||
if resolve {
|
||||
// We're allowed to resolve, leave the
|
||||
// rest up to the dereferencer functions.
|
||||
//
|
||||
// Allow dereferencing by URL and not just URI;
|
||||
// there are many cases where someone might
|
||||
// paste a URL into the search bar.
|
||||
account, _, err := p.federator.GetAccountByURI(
|
||||
gtscontext.SetFastFail(ctx),
|
||||
requestingAccount.Username,
|
||||
uri,
|
||||
true,
|
||||
)
|
||||
|
||||
return []*gtsmodel.Account{account}, err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue