mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-26 09:13:31 -06:00
fmt + lint
This commit is contained in:
parent
0fe853b1ee
commit
9ca354fe3c
6 changed files with 16 additions and 17 deletions
|
|
@ -409,7 +409,7 @@ func (p *processor) dereferenceAnnounce(announce *gtsmodel.Status, requestingUse
|
|||
}
|
||||
|
||||
// now dereference additional fields straight away (we're already async here so we have time)
|
||||
if err := p.dereferenceStatusFields(boostedStatus, requestingUsername); err != nil {
|
||||
if err := p.dereferenceStatusFields(boostedStatus, requestingUsername); err != nil {
|
||||
return fmt.Errorf("dereferenceAnnounce: error dereferencing status fields for status with id %s: %s", announce.GTSBoostedStatus.URI, err)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ func (p *processor) searchAccountByMention(authed *oauth.Auth, mention string, r
|
|||
// if it's a local account we can skip a whole bunch of stuff
|
||||
maybeAcct := >smodel.Account{}
|
||||
if domain == p.config.Host {
|
||||
if p.db.GetLocalAccountByUsername(username, maybeAcct); err != nil {
|
||||
if err = p.db.GetLocalAccountByUsername(username, maybeAcct); err != nil {
|
||||
return
|
||||
}
|
||||
foundAccount = maybeAcct
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue