summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--content/item.go5
-rw-r--r--management/editor/editor.go1
2 files changed, 6 insertions, 0 deletions
diff --git a/content/item.go b/content/item.go
index 79d0197..f4a5489 100644
--- a/content/item.go
+++ b/content/item.go
@@ -13,6 +13,11 @@ func (i Item) Time() int64 {
return i.Timestamp
}
+// Touch partially implements the Sortable interface
+func (i Item) Touch() int64 {
+ return i.Updated
+}
+
// ContentID partially implements the Sortable interface
func (i Item) ContentID() int {
return i.ID
diff --git a/management/editor/editor.go b/management/editor/editor.go
index 1525ef9..d069047 100644
--- a/management/editor/editor.go
+++ b/management/editor/editor.go
@@ -19,6 +19,7 @@ type Editable interface {
// Sortable ensures data is sortable by time
type Sortable interface {
Time() int64
+ Touch() int64
ContentID() int
}