summaryrefslogtreecommitdiff
path: root/internal/db/bundb/bundb.go
diff options
context:
space:
mode:
authorLibravatar Adelie Paull <1208865+i-am-a-paull@users.noreply.github.com>2022-05-20 04:34:36 -0400
committerLibravatar GitHub <noreply@github.com>2022-05-20 10:34:36 +0200
commitcaa0cde0e025708a762659758d9de7851745cbfe (patch)
tree49ff2f70b5a15a3bf73832c8032ce7f4d5023392 /internal/db/bundb/bundb.go
parent[bugfix] Stop some statuses from being home timelined when they shouldn't be ... (diff)
downloadgotosocial-caa0cde0e025708a762659758d9de7851745cbfe.tar.xz
[feature] implement custom_emojis endpoint (#563)
* implement custom_emojis api endpoint * add tests for getting custom emoji out of the database and converting to api emoji * change sort direction of emoji query * change logging level and initialize array with known length as per kim's suggestions * add continue to lessen risk of making a malformed struct during conversion from db to api emojis
Diffstat (limited to 'internal/db/bundb/bundb.go')
-rw-r--r--internal/db/bundb/bundb.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/db/bundb/bundb.go b/internal/db/bundb/bundb.go
index a79e7e4f4..f458132a1 100644
--- a/internal/db/bundb/bundb.go
+++ b/internal/db/bundb/bundb.go
@@ -77,6 +77,7 @@ type bunDBService struct {
db.Admin
db.Basic
db.Domain
+ db.Emoji
db.Instance
db.Media
db.Mention
@@ -168,6 +169,9 @@ func NewBunDBService(ctx context.Context) (db.DB, error) {
Domain: &domainDB{
conn: conn,
},
+ Emoji: &emojiDB{
+ conn: conn,
+ },
Instance: &instanceDB{
conn: conn,
},