diff options
author | 2022-09-02 10:56:33 +0100 | |
---|---|---|
committer | 2022-09-02 11:56:33 +0200 | |
commit | 614ab12733b991dbea9d1f7fa311a98072558727 (patch) | |
tree | 41780382cb71413566c8c87ce1ce0184c504253b /internal/db/account.go | |
parent | [feature] Emojify spoiler and content in web templates (#785) (diff) | |
download | gotosocial-614ab12733b991dbea9d1f7fa311a98072558727.tar.xz |
[performance] use GetAccountByUsernameDomain() for local account lookups to rely on cache (#793)
Signed-off-by: kim <grufwub@gmail.com>
Signed-off-by: kim <grufwub@gmail.com>
Diffstat (limited to 'internal/db/account.go')
-rw-r--r-- | internal/db/account.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/internal/db/account.go b/internal/db/account.go index 155bd666c..54e24784f 100644 --- a/internal/db/account.go +++ b/internal/db/account.go @@ -42,9 +42,6 @@ type Account interface { // UpdateAccount updates one account by ID. UpdateAccount(ctx context.Context, account *gtsmodel.Account) (*gtsmodel.Account, Error) - // GetLocalAccountByUsername returns an account on this instance by its username. - GetLocalAccountByUsername(ctx context.Context, username string) (*gtsmodel.Account, Error) - // GetAccountFaves fetches faves/likes created by the target accountID. GetAccountFaves(ctx context.Context, accountID string) ([]*gtsmodel.StatusFave, Error) |