summaryrefslogtreecommitdiff
path: root/internal/api/model/notification.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/model/notification.go')
-rw-r--r--internal/api/model/notification.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/internal/api/model/notification.go b/internal/api/model/notification.go
index 8f929cab4..efcd2431b 100644
--- a/internal/api/model/notification.go
+++ b/internal/api/model/notification.go
@@ -43,3 +43,24 @@ type Notification struct {
// Status that was the object of the notification, e.g. in mentions, reblogs, favourites, or polls.
Status *Status `json:"status,omitempty"`
}
+
+/*
+ The below functions are added onto the apimodel notification so that it satisfies
+ the Timelineable interface in internal/timeline.
+*/
+
+func (n *Notification) GetID() string {
+ return n.ID
+}
+
+func (n *Notification) GetAccountID() string {
+ return ""
+}
+
+func (n *Notification) GetBoostOfID() string {
+ return ""
+}
+
+func (n *Notification) GetBoostOfAccountID() string {
+ return ""
+}