equal
deleted
inserted
replaced
49 return ¬ification, fmt.Errorf("%s", errorRes.Text) |
49 return ¬ification, fmt.Errorf("%s", errorRes.Text) |
50 } |
50 } |
51 return ¬ification, fmt.Errorf("notification API: %s", err.Error()) |
51 return ¬ification, fmt.Errorf("notification API: %s", err.Error()) |
52 } |
52 } |
53 |
53 |
|
54 if notification.ID == 0 { |
|
55 return nil, ErrEntityNotFound |
|
56 } |
|
57 |
54 return ¬ification, nil |
58 return ¬ification, nil |
55 } |
59 } |
56 |
60 |
57 // ClearNotifications deletes all notifications from the Mastodon server for |
61 // ClearNotifications deletes all notifications from the Mastodon server for |
58 // the authenticated user |
62 // the authenticated user |