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

[DribbbleBridge] Fix pictures parsing (fix #1898) #1911

Merged
merged 1 commit into from
Jan 20, 2021
Merged

[DribbbleBridge] Fix pictures parsing (fix #1898) #1911

merged 1 commit into from
Jan 20, 2021

Conversation

corenting
Copy link
Contributor

Fix the img attribute (from src to srcset) to allow RSS readers to display the picture.
Also change the getFullSizeImagePath to get the last image from the srcset.

Should fix #1898 .

}

private function getArrayLastElement($array) {
return array_values(array_slice($array, -1))[0];
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe use end instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh yeah thanks ! Fixed in 65b42bf

@corenting corenting requested a review from em92 January 12, 2021 17:54
@em92 em92 merged commit fbbd6a0 into RSS-Bridge:master Jan 20, 2021
@em92
Copy link
Contributor

em92 commented Jan 20, 2021

gj @corenting !

@corenting corenting deleted the fix_dribble_pictures branch January 20, 2021 17:33
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.

The images in Dribbble Bridge won’t show up in RSS reader
2 participants