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

More permanent fix for #584 #603

Merged
merged 18 commits into from
May 28, 2020
Merged

Conversation

bennettscience
Copy link
Contributor

Albums that do not allow photo downloads cannot be included as enclosures. This checks album permissions before creating the enclosure to add to the feed.

bennettscience and others added 14 commits May 23, 2020 16:23
- Default view to RSS instead of Atom to include enclosure
Adding a link to the public image fails if the album does
not allow original image downloads. The enclosure tag is only
added to the feed if downloads are allowed.
Photos can only be attached in the <enclosure> tag if the
album allows anyone to download the file. This checks for album
permissions before creating an enclosure object to send.
Albums that do not allow photo downloads cannot be included
as enclosures. This checks album permissions before creating
the enclosure to add to the feed.
@codecov-commenter
Copy link

codecov-commenter commented May 26, 2020

Codecov Report

Merging #603 into master will decrease coverage by 0.83%.
The diff coverage is 34.91%.

@ildyria
Copy link
Member

ildyria commented May 27, 2020

Albums that do not allow photo downloads cannot be included as enclosures. This checks album permissions before creating the enclosure to add to the feed.

Disabling photo download is just removing the access to the big source. We can still provide the medium one. That is what the downgrade is doing.

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.

minor fixes for smell required.

app/Http/Controllers/RSSController.php Outdated Show resolved Hide resolved
app/Http/Controllers/RSSController.php Outdated Show resolved Hide resolved
app/Http/Controllers/RSSController.php Outdated Show resolved Hide resolved
bennettscience and others added 3 commits May 27, 2020 07:13
Remove redundant `null` assignment.

Co-authored-by: Benoît Viguier <ildyria@users.noreply.github.com>
Co-authored-by: Benoît Viguier <ildyria@users.noreply.github.com>
Co-authored-by: Benoît Viguier <ildyria@users.noreply.github.com>
@sonarcloud
Copy link

sonarcloud bot commented May 27, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ildyria ildyria merged commit 403efed into LycheeOrg:master May 28, 2020
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