From a6c63b33cac1431f93f76f27e6eb1ae9ee06d8c2 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 6 Sep 2024 23:21:07 +0300 Subject: add Next --- internal/types/entry.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'internal/types') diff --git a/internal/types/entry.go b/internal/types/entry.go index 0fbbcce..2f044f3 100644 --- a/internal/types/entry.go +++ b/internal/types/entry.go @@ -10,9 +10,12 @@ import ( "strings" ) +type PlatformName = string +type EntryID = string + type Entry struct { // The unique ID of this entry. - ID string `json:"id,omitempty"` + ID EntryID `json:"id,omitempty"` Body string `json:"body"` Shared map[PlatformName]Shared `json:"shared,omitempty"` Epoch int `json:"epoch,omitempty"` @@ -158,11 +161,7 @@ func (e Entry) checksumBase() string { for platform := range e.Shared { platforms = append(platforms, platform) } - sort.Strings(platforms) - // slices.SortFunc(platforms, func(a, b SocialPlatform) int { - // return cmp.Compare(a.Name(), b.Name()) - // }) for i, patform := range platforms { if i > 0 { -- cgit v1.2.3