Fixed missing check
This commit is contained in:
parent
b134de7722
commit
b1a12b83ac
@ -2,6 +2,7 @@ package embed
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/aerogo/aero"
|
"github.com/aerogo/aero"
|
||||||
"github.com/animenotifier/notify.moe/components"
|
"github.com/animenotifier/notify.moe/components"
|
||||||
@ -16,7 +17,7 @@ func Get(ctx *aero.Context) string {
|
|||||||
return utils.AllowEmbed(ctx, ctx.HTML(components.Login("_blank")))
|
return utils.AllowEmbed(ctx, ctx.HTML(components.Login("_blank")))
|
||||||
}
|
}
|
||||||
|
|
||||||
if true {
|
if !user.IsPro() && user.TimeSinceRegistered() > 14*24*time.Hour {
|
||||||
return utils.AllowEmbed(ctx, ctx.HTML(components.EmbedProNotice(user)))
|
return utils.AllowEmbed(ctx, ctx.HTML(components.EmbedProNotice(user)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user