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
Preview picture: use the 1st pic retrieved if no og:image set #3965
Conversation
I switched the target branch to be the 2.4 (to avoid to much rebase before releasing it). About the work done, good job, it's an interesting feature. |
Great, I'll try to rebase it this week (There is no "rebase" button in Github?)! |
There is. But it's only displayed when the branch has conflicts with the target branch. Which isn't the case here. |
Rebased. I'll try to fix the existing tests now. |
Tests fixed :). |
You should run |
Sorry, I did not see the lint failing… |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'd like to have a preview picture for every link I add to my wallabag. Currently only pictures set as
og:image
are used for the preview picture (unless the link is an image).This MR parses the content to find the first picture in the content and use it as a preview (unless there already is a preview picture).
I'd like that to be added to the core but maybe you'd prefer if it required an activation from the user (a new boolean)? That's why I did not edit the tests that check there are no preview pictures for some links: I am waiting for your feedback.