Fix links with expiration #621

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-11-22 03:12:31 +01:00
parent 402087f78a
commit 49a299b3b0

View file

@ -77,7 +77,7 @@ func (m *Link) Expired() bool {
now := Timestamp()
expires := m.ModifiedAt.Add(Seconds(m.LinkExpires))
return now.Before(expires)
return now.After(expires)
}
func (m *Link) SetSlug(s string) {