Small bug fix
This commit is contained in:
parent
b496ac3691
commit
657624cbd6
2
entry.go
2
entry.go
@ -63,7 +63,7 @@ func NewEntry(title string) (*Entry, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return &Entry{
|
return &Entry{
|
||||||
ID: NewID(),
|
ID: NewID(NewURN()),
|
||||||
Title: text,
|
Title: text,
|
||||||
Updated: NewDate(time.Now()),
|
Updated: NewDate(time.Now()),
|
||||||
}, nil
|
}, nil
|
||||||
|
2
feed.go
2
feed.go
@ -34,7 +34,7 @@ func NewFeed(title string) (*Feed, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return &Feed{
|
return &Feed{
|
||||||
ID: NewID(),
|
ID: NewID(NewURN()),
|
||||||
Title: text,
|
Title: text,
|
||||||
Updated: NewDate(time.Now()),
|
Updated: NewDate(time.Now()),
|
||||||
}, nil
|
}, nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user