mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-02 20:08:08 -06:00
restructuring federator
This commit is contained in:
parent
d9da0022e1
commit
b777a682fe
15 changed files with 410 additions and 195 deletions
|
|
@ -218,7 +218,7 @@ func (mh *mediaHandler) ProcessLocalEmoji(emojiBytes []byte, shortcode string) (
|
|||
// (ie., fileserver/ACCOUNT_ID/etc etc) we need to fetch the INSTANCE ACCOUNT from the database. That is, the account that's created
|
||||
// with the same username as the instance hostname, which doesn't belong to any particular user.
|
||||
instanceAccount := >smodel.Account{}
|
||||
if err := mh.db.GetWhere("username", mh.config.Host, instanceAccount); err != nil {
|
||||
if err := mh.db.GetLocalAccountByUsername(mh.config.Host, instanceAccount); err != nil {
|
||||
return nil, fmt.Errorf("error fetching instance account: %s", err)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue