cbdabe791e
* 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) |
||
---|---|---|
.. | ||
barertc | ||
auth.go | ||
json_layer.go | ||
likes.go | ||
mark_explicit.go | ||
photo.go | ||
photosign_auth.go | ||
read_notification.go | ||
username_check.go | ||
version.go | ||
world_cities.go |