summaryrefslogtreecommitdiff
path: root/internal/message/notificationsprocess.go
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-05-30 13:12:00 +0200
committerLibravatar GitHub <noreply@github.com>2021-05-30 13:12:00 +0200
commit3d77f81c7fed002c628db82d822cc46c56a57e64 (patch)
treeba6eea80246fc2b1466ccc1435f50a3f63fd02df /internal/message/notificationsprocess.go
parentfix some lil bugs in search (diff)
downloadgotosocial-3d77f81c7fed002c628db82d822cc46c56a57e64.tar.xz
Move a lot of stuff + tidy stuff (#37)
Lots of renaming and moving stuff, some bug fixes, more lenient parsing of notifications and home timeline.
Diffstat (limited to 'internal/message/notificationsprocess.go')
-rw-r--r--internal/message/notificationsprocess.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/internal/message/notificationsprocess.go b/internal/message/notificationsprocess.go
deleted file mode 100644
index 64726b75f..000000000
--- a/internal/message/notificationsprocess.go
+++ /dev/null
@@ -1,24 +0,0 @@
-package message
-
-import (
- apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model"
- "github.com/superseriousbusiness/gotosocial/internal/oauth"
-)
-
-func (p *processor) NotificationsGet(authed *oauth.Auth, limit int, maxID string) ([]*apimodel.Notification, ErrorWithCode) {
- notifs, err := p.db.GetNotificationsForAccount(authed.Account.ID, limit, maxID)
- if err != nil {
- return nil, NewErrorInternalError(err)
- }
-
- mastoNotifs := []*apimodel.Notification{}
- for _, n := range notifs {
- mastoNotif, err := p.tc.NotificationToMasto(n)
- if err != nil {
- return nil, NewErrorInternalError(err)
- }
- mastoNotifs = append(mastoNotifs, mastoNotif)
- }
-
- return mastoNotifs, nil
-}