AvatarTag

struct AvatarTag : UnsafeUnescapedLeafTag

Inserts an tag for the given user’s avatar image. Presents a default image if the user doesn’t have an image. Note: If we implement identicons at the API level, users will always have images, and the ‘generic user’ image here is just a fallback.

First parameter is the UserHeader, second optional parameter is the size of the to produce. This tag will select the best size image to reference based on the size of the image tag it is being placed in. Only produces square image views.

Usage: #avatar(userHeader), #avatar(userHeader, 800)