Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Public photos hidden #932

Merged
merged 3 commits into from
Feb 22, 2021
Merged

Public photos hidden #932

merged 3 commits into from
Feb 22, 2021

Conversation

kamil4
Copy link
Contributor

@kamil4 kamil4 commented Feb 19, 2021

This is inspired by the discussion in #880.

It adds a new config variable public_photos_hidden, which defaults to 1 (preserving the current behavior). If set to 0, photos individually made public (rather than through an album) will be included in the results of a public search or in public tagged albums. Basically, they will no longer be treated as hidden (even though they still won't be findable through browsing; we could address that as well by making the Public smart album, well, public -- I welcome your input if we should, and if so, what to name the config variable to enabled that, other than public_public 😉).

The PR also fixes an unrelated regression where we weren't setting public to 2 for photos in public albums belonging to the current user (including admin).

Copy link
Member

@ildyria ildyria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Copy link
Contributor

@d7415 d7415 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok to me.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov
Copy link

codecov bot commented Feb 22, 2021

Codecov Report

Merging #932 (1b1aa50) into master (ca12f4e) will decrease coverage by 1.55%.
The diff coverage is 10.00%.

@kamil4 kamil4 merged commit 0400553 into master Feb 22, 2021
@delete-merged-branch delete-merged-branch bot deleted the public-photos-hidden branch February 22, 2021 19:32
@kamil4 kamil4 mentioned this pull request Mar 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants