Skip to content

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`.
@nlemoine nlemoine requested review from gchtr and jarednova as code owners May 26, 2023 09:59
@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
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.

5 participants