diff options
| author | 2023-07-05 12:34:37 +0200 | |
|---|---|---|
| committer | 2023-07-05 12:34:37 +0200 | |
| commit | d9c69f6ce05daddf2f6d5d8c6c03b4c3d55df93a (patch) | |
| tree | 7ee20e4665bdad322321dc10f59175f7b076a7ba /internal/db/bundb/account.go | |
| parent | [chore/bugfix] Break Websockets logic into smaller read/write functions, don'... (diff) | |
| download | gotosocial-d9c69f6ce05daddf2f6d5d8c6c03b4c3d55df93a.tar.xz | |
[chore/performance] Remove remaining 'whereEmptyOrNull' funcs (#1946)
Diffstat (limited to 'internal/db/bundb/account.go')
| -rw-r--r-- | internal/db/bundb/account.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/db/bundb/account.go b/internal/db/bundb/account.go index d8aee80f4..17339732e 100644 --- a/internal/db/bundb/account.go +++ b/internal/db/bundb/account.go @@ -388,8 +388,8 @@ func (a *accountDB) GetAccountLastPosted(ctx context.Context, accountID string, if webOnly { q = q. - WhereGroup(" AND ", whereEmptyOrNull("status.in_reply_to_uri")). - WhereGroup(" AND ", whereEmptyOrNull("status.boost_of_id")). + Where("? IS NULL", bun.Ident("status.in_reply_to_uri")). + Where("? IS NULL", bun.Ident("status.boost_of_id")). Where("? = ?", bun.Ident("status.visibility"), gtsmodel.VisibilityPublic). Where("? = ?", bun.Ident("status.federated"), true) } |
