summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/item.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/content/item.go b/content/item.go
index 7bb25db..79d0197 100644
--- a/content/item.go
+++ b/content/item.go
@@ -8,7 +8,12 @@ type Item struct {
Updated int64 `json:"updated"`
}
-// Time implements the Sortable interface
+// Time partially implements the Sortable interface
func (i Item) Time() int64 {
return i.Timestamp
}
+
+// ContentID partially implements the Sortable interface
+func (i Item) ContentID() int {
+ return i.ID
+}