Re-enable extension for free accounts
This commit is contained in:
parent
539351c7ae
commit
4fb58dea4f
@ -2,7 +2,6 @@ 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"
|
||||||
@ -17,9 +16,11 @@ 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 !user.IsPro() && user.TimeSinceRegistered() > 14*24*time.Hour {
|
// Extension is enabled as long as the site isn't finished yet.
|
||||||
return utils.AllowEmbed(ctx, ctx.HTML(components.EmbedProNotice(user)))
|
// ---
|
||||||
}
|
// if !user.IsPro() && user.TimeSinceRegistered() > 14*24*time.Hour {
|
||||||
|
// return utils.AllowEmbed(ctx, ctx.HTML(components.EmbedProNotice(user)))
|
||||||
|
// }
|
||||||
|
|
||||||
animeList := user.AnimeList()
|
animeList := user.AnimeList()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user