Fixed profiles for logged out users
This commit is contained in:
parent
a2cefcb516
commit
0b9e441d64
@ -95,9 +95,9 @@ component ProfileHead(viewUser *arn.User, user *arn.User, uri string)
|
|||||||
Icon("star")
|
Icon("star")
|
||||||
span.profile-pro-status-text PRO
|
span.profile-pro-status-text PRO
|
||||||
|
|
||||||
if user != nil
|
|
||||||
.profile-actions
|
.profile-actions
|
||||||
if user.ID != viewUser.ID
|
if user != nil && user.ID != viewUser.ID
|
||||||
if !user.Follows().Contains(viewUser.ID)
|
if !user.Follows().Contains(viewUser.ID)
|
||||||
button.profile-action.action(data-action="followUser", data-trigger="click", data-api="/api/userfollows/" + user.ID + "/add/" + viewUser.ID)
|
button.profile-action.action(data-action="followUser", data-trigger="click", data-api="/api/userfollows/" + user.ID + "/add/" + viewUser.ID)
|
||||||
Icon("user-plus")
|
Icon("user-plus")
|
||||||
@ -111,7 +111,7 @@ component ProfileHead(viewUser *arn.User, user *arn.User, uri string)
|
|||||||
Icon("list")
|
Icon("list")
|
||||||
span Anime list
|
span Anime list
|
||||||
|
|
||||||
if user.ID != viewUser.ID
|
if user != nil && user.ID != viewUser.ID
|
||||||
a.button.profile-action.ajax(href="/compare/animelist/" + user.Nick + "/" + viewUser.Nick)
|
a.button.profile-action.ajax(href="/compare/animelist/" + user.Nick + "/" + viewUser.Nick)
|
||||||
Icon("exchange")
|
Icon("exchange")
|
||||||
span Compare
|
span Compare
|
||||||
|
Loading…
Reference in New Issue
Block a user