summaryrefslogtreecommitdiff
path: root/internal/types
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-09-06 23:21:07 +0300
committerPaul Buetow <paul@buetow.org>2024-09-06 23:21:07 +0300
commita6c63b33cac1431f93f76f27e6eb1ae9ee06d8c2 (patch)
treebe2d7beded077b57e5d24b54e85bb820acf5909f /internal/types
parent756e66e524cce031be9ad1684a046c16f824e7d8 (diff)
add Next
Diffstat (limited to 'internal/types')
-rw-r--r--internal/types/entry.go9
1 files changed, 4 insertions, 5 deletions
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 {