Re-enable extension for free accounts
This commit is contained in:
parent
539351c7ae
commit
4fb58dea4f
@ -2,7 +2,6 @@ package embed
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/animenotifier/notify.moe/components"
|
||||
@ -17,9 +16,11 @@ func Get(ctx *aero.Context) string {
|
||||
return utils.AllowEmbed(ctx, ctx.HTML(components.Login("_blank")))
|
||||
}
|
||||
|
||||
if !user.IsPro() && user.TimeSinceRegistered() > 14*24*time.Hour {
|
||||
return utils.AllowEmbed(ctx, ctx.HTML(components.EmbedProNotice(user)))
|
||||
}
|
||||
// Extension is enabled as long as the site isn't finished yet.
|
||||
// ---
|
||||
// if !user.IsPro() && user.TimeSinceRegistered() > 14*24*time.Hour {
|
||||
// return utils.AllowEmbed(ctx, ctx.HTML(components.EmbedProNotice(user)))
|
||||
// }
|
||||
|
||||
animeList := user.AnimeList()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user