website/pkg/controller/api
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
..
barertc Member Search: Order by certified at 2024-08-23 23:09:27 -07:00
auth.go Rename the module 2022-08-25 21:21:46 -07:00
json_layer.go Search By Location 2024-08-03 14:54:22 -07:00
likes.go Improve Signed Photo URLs 2024-10-03 20:14:34 -07:00
mark_explicit.go Improvements on community flagged explicit photos 2024-10-01 20:44:11 -07:00
photo.go Tweak admin permissions and photo view counts 2024-09-28 12:45:20 -07:00
photosign_auth.go Improve Signed Photo URLs 2024-10-03 20:14:34 -07:00
read_notification.go Clear/Delete Notifications, Private Photo Fixes 2023-08-04 18:54:04 -07:00
username_check.go Reserved username check on signup page 2023-09-09 12:26:51 -07:00
version.go Rename the module 2022-08-25 21:21:46 -07:00
world_cities.go Search By Location 2024-08-03 14:54:22 -07:00