Minor bugfix

This commit is contained in:
Noah Petherbridge 2023-08-15 09:53:13 -07:00
parent 666d3105b7
commit 4c398c9b13

View File

@ -98,7 +98,7 @@ func UserPhotos() http.HandlerFunc {
if isOwnPhotos || isGrantee || currentUser.HasAdminScope(config.ScopePhotoModerator) {
visibility = append(visibility, models.PhotoPrivate)
}
if models.AreFriends(user.ID, currentUser.ID) {
if isOwnPhotos || models.AreFriends(user.ID, currentUser.ID) {
visibility = append(visibility, models.PhotoFriends)
}