···62626363// AvatarLinkWithSize returns a link to the user's avatar with size. size <= 0 means default size
6464func (u *User) AvatarLinkWithSize(ctx context.Context, size int) string {
6565- if u.IsGhost() {
6565+ if u.IsGhost() || u.ID <= 0 {
6666 return avatars.DefaultAvatarLink()
6767 }
6868