Re-enable extension for free accounts

This commit is contained in:
Eduard Urbach 2017-11-27 16:18:29 +01:00
parent 539351c7ae
commit 4fb58dea4f

View File

@ -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()