website/pkg/templates
Noah Petherbridge cbdabe791e Improve Signed Photo URLs
* The photo signing JWT tokens carry more fields to validate against:
  * The username the token is assigned to (or '@' for anyone)
  * An 'anyone' boolean for widely public images, such as for the chat room
    and public profile pages.
  * A short filename hash of the image in question (whether a Photo or a
    CommentPhoto) - so that the user can't borrow a JWT token from the chat
    room and reveal a different picture.
* Refactored where the VisibleAvatarURL function lives, to avoid a cyclic
  dependency error.
  * Originally: (*models.User).VisibleAvatarURL(other *models.User)
  * Now: (pkg/photo).VisibleAvatarURL(user, currentUser *models.User)
2024-10-03 20:14:34 -07:00
..
error_pages.go Fix type assertions in FormatNumberShort 2023-12-21 17:30:34 -08:00
redirect.go Go 1.22 upgrade 2024-02-10 16:17:15 -08:00
template_funcs.go Improve Signed Photo URLs 2024-10-03 20:14:34 -07:00
template_vars.go Forum Admin Page for Regular Users 2024-08-23 22:56:40 -07:00
templates_test.go Fix type assertions in FormatNumberShort 2023-12-21 17:30:34 -08:00
templates.go Forum Admin Page for Regular Users 2024-08-23 22:56:40 -07:00