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

Remove audio & video methods from Post #2750

Merged
merged 1 commit into from May 26, 2023
Merged

Remove audio & video methods from Post #2750

merged 1 commit into from May 26, 2023

Conversation

nlemoine
Copy link
Member

@nlemoine nlemoine commented May 26, 2023

Sorry, I'm rushing before RC to try to get rid of things that I would really don't want to see anymore in Timber and that's my last chance to introduce breaking changes 🙂

Feel free to disagree of course ;)

Issue

Those methods do not really make sense. Since Post is kind of a DTO object, it should not extract html content from post_content. Theoretically, this would mean we could have some methods like paragraphs() or headings().

Solution

Remove them.

Impact

Yes, methods aren't available anymore.

Usage Changes

No more {{ post.audio }} or {{ post.video }}

Considerations

If users asks for these, we could introduce more generic filters to extract some HTML from content.

Those methods do not really make sense. Since `Post` is kind of a DTO object, it should not extract html content from `post_content`.
@coveralls
Copy link

Coverage Status

Coverage: 88.602% (-0.02%) from 88.623% when pulling 0847681 on 2.x-remove-audio-video into 3d6bb88 on 2.x.

@gchtr gchtr added the 2.0 label May 26, 2023
@gchtr gchtr mentioned this pull request May 26, 2023
30 tasks
@nlemoine nlemoine changed the title Remove audio & video methods from post Remove audio & video methods from Post May 26, 2023
@Levdbas Levdbas merged commit b359316 into 2.x May 26, 2023
49 of 52 checks passed
gchtr added a commit that referenced this pull request May 29, 2023
Levdbas added a commit that referenced this pull request May 30, 2023
@Levdbas Levdbas deleted the 2.x-remove-audio-video branch November 9, 2023 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants