--- a/notifications.go Thu Apr 13 00:17:57 2017 +0200
+++ b/notifications.go Thu Apr 13 09:30:47 2017 +0200
@@ -51,6 +51,10 @@
return ¬ification, fmt.Errorf("notification API: %s", err.Error())
}
+ if notification.ID == 0 {
+ return nil, ErrEntityNotFound
+ }
+
return ¬ification, nil
}