Fix links with expiration #621
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
402087f78a
commit
49a299b3b0
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ func (m *Link) Expired() bool {
|
||||||
now := Timestamp()
|
now := Timestamp()
|
||||||
expires := m.ModifiedAt.Add(Seconds(m.LinkExpires))
|
expires := m.ModifiedAt.Add(Seconds(m.LinkExpires))
|
||||||
|
|
||||||
return now.Before(expires)
|
return now.After(expires)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Link) SetSlug(s string) {
|
func (m *Link) SetSlug(s string) {
|
||||||
|
|
Loading…
Reference in a new issue