Use generic AvatarLink() function
This commit is contained in:
@ -88,7 +88,7 @@ func Success(ctx *aero.Context) string {
|
||||
admin.SendNotification(&arn.PushNotification{
|
||||
Title: user.Nick + " bought " + strconv.Itoa(payment.Gems()) + " gems",
|
||||
Message: user.Nick + " paid " + payment.Amount + " " + payment.Currency + " making his new balance " + strconv.Itoa(user.Balance),
|
||||
Icon: user.LargeAvatar(),
|
||||
Icon: user.AvatarLink("large"),
|
||||
Link: "https://" + ctx.App.Config.Domain + "/api/paypalpayment/" + payment.ID,
|
||||
Type: arn.NotificationTypePurchase,
|
||||
})
|
||||
|
@ -31,7 +31,7 @@ func Profile(ctx *aero.Context, viewUser *arn.User) string {
|
||||
openGraph := &arn.OpenGraph{
|
||||
Tags: map[string]string{
|
||||
"og:title": viewUser.Nick,
|
||||
"og:image": viewUser.LargeAvatar(),
|
||||
"og:image": viewUser.AvatarLink("large"),
|
||||
"og:url": "https://" + ctx.App.Config.Domain + viewUser.Link(),
|
||||
"og:site_name": "notify.moe",
|
||||
"og:description": viewUser.Tagline,
|
||||
|
@ -56,9 +56,9 @@ component SettingsPersonal(user *arn.User)
|
||||
|
||||
.profile-image-container.avatar-preview
|
||||
if user.HasAvatar()
|
||||
img#avatar-input-preview.profile-image.mountable(src=user.LargeAvatar(), alt="Profile image", title="Recommended: 560 x 560 | PNG or JPG")
|
||||
img#avatar-input-preview.profile-image.mountable(src=user.AvatarLink("large"), alt="Profile image", title="Recommended: 560 x 560 | PNG or JPG")
|
||||
else
|
||||
img#avatar-input-preview.profile-image.hidden(src=user.LargeAvatar(), alt="Profile image", title="Recommended: 560 x 560 | PNG or JPG")
|
||||
img#avatar-input-preview.profile-image.hidden(src=user.AvatarLink("large"), alt="Profile image", title="Recommended: 560 x 560 | PNG or JPG")
|
||||
|
||||
#avatar-input-preview-svg
|
||||
SVGProfileImage(user)
|
||||
|
@ -32,5 +32,5 @@ func Avatar(ctx *aero.Context) string {
|
||||
// Save avatar information
|
||||
user.Save()
|
||||
|
||||
return user.SmallAvatar()
|
||||
return user.AvatarLink("small")
|
||||
}
|
||||
|
Reference in New Issue
Block a user