website/pkg/controller
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
..
account Tweak admin permissions and photo view counts 2024-09-28 12:45:20 -07:00
admin Improvements on community flagged explicit photos 2024-10-01 20:44:11 -07:00
api Improve Signed Photo URLs 2024-10-03 20:14:34 -07:00
block Notification when admin users are blocked 2024-09-10 15:43:34 -07:00
chat Improve Signed Photo URLs 2024-10-03 20:14:34 -07:00
comment Optimize sorting gallery by Likes/Comments via caching 2024-09-21 17:25:36 -07:00
forum User Forums: Enable PermitPhotos for all forum owners 2024-09-28 12:58:52 -07:00
friend Web Push Notifications 2024-07-20 19:44:22 -07:00
htmx HTMX lazy load for user statistics card 2024-04-24 20:36:37 -07:00
inbox Web Push Notifications 2024-07-20 19:44:22 -07:00
index Improve message reporting format 2024-09-26 21:05:27 -07:00
photo Admin labels on photos surrounding explicit flags 2024-10-02 16:22:19 -07:00
poll Wrap Up Polls Support 2022-12-20 19:15:45 -08:00
version Rename the module 2022-08-25 21:21:46 -07:00