diff options
Diffstat (limited to 'internal/processing/notification.go')
-rw-r--r-- | internal/processing/notification.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/internal/processing/notification.go b/internal/processing/notification.go index ee0e4ae34..9b99141a6 100644 --- a/internal/processing/notification.go +++ b/internal/processing/notification.go @@ -21,18 +21,15 @@ package processing import ( "context" - "github.com/sirupsen/logrus" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" "github.com/superseriousbusiness/gotosocial/internal/gtserror" + "github.com/superseriousbusiness/gotosocial/internal/log" "github.com/superseriousbusiness/gotosocial/internal/oauth" "github.com/superseriousbusiness/gotosocial/internal/timeline" "github.com/superseriousbusiness/gotosocial/internal/util" ) func (p *processor) NotificationsGet(ctx context.Context, authed *oauth.Auth, limit int, maxID string, sinceID string) (*apimodel.TimelineResponse, gtserror.WithCode) { - l := logrus.WithField("func", "NotificationsGet") - notifs, err := p.db.GetNotifications(ctx, authed.Account.ID, limit, maxID, sinceID) if err != nil { return nil, gtserror.NewErrorInternalError(err) @@ -46,7 +43,7 @@ func (p *processor) NotificationsGet(ctx context.Context, authed *oauth.Auth, li for _, n := range notifs { apiNotif, err := p.tc.NotificationToAPINotification(ctx, n) if err != nil { - l.Debugf("got an error converting a notification to api, will skip it: %s", err) + log.Debugf("got an error converting a notification to api, will skip it: %s", err) continue } timelineables = append(timelineables, apiNotif) |