Update info on Chrome extension
This commit is contained in:
@ -2,6 +2,7 @@ package embed
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/animenotifier/notify.moe/components"
|
||||
@ -16,6 +17,10 @@ func Get(ctx *aero.Context) string {
|
||||
return utils.AllowEmbed(ctx, ctx.HTML(components.Login()))
|
||||
}
|
||||
|
||||
if !user.IsPro() && user.TimeSinceRegistered() > 14*24*time.Hour {
|
||||
return utils.AllowEmbed(ctx, ctx.HTML(components.EmbedProNotice(user)))
|
||||
}
|
||||
|
||||
animeList := user.AnimeList()
|
||||
|
||||
if animeList == nil {
|
||||
|
Reference in New Issue
Block a user