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

Need Filter for comment replies only #133

Open
ronalfy opened this issue Jul 12, 2019 · 6 comments
Open

Need Filter for comment replies only #133

ronalfy opened this issue Jul 12, 2019 · 6 comments
Assignees
Milestone

Comments

@ronalfy
Copy link
Collaborator

ronalfy commented Jul 12, 2019

I'm not sure where to look in the codebase for this, but I can't seem to find a filter that allows a third-party plugin to override the options for replies only.

@cyberhobo would you be able to take a look at this?

@ronalfy ronalfy added this to the 3.0 milestone Jul 12, 2019
@cyberhobo
Copy link
Contributor

Commentium adds that option for users using our delivery service. It doesn't have a filter.

@Vernal have you verified that you get the behavior you want when the enable replies only setting is on?

@ronalfy
Copy link
Collaborator Author

ronalfy commented Jul 16, 2019

@cyberhobo would it be possible to add a filter in commentium?

@cyberhobo
Copy link
Contributor

I think a better approach would be to follow the pattern commentium uses to provide your own flood controller implementation. There you could implement exactly the behavior you need, and have less risk of breaking existing features.

@Vernal
Copy link
Contributor

Vernal commented Aug 3, 2019

Hey @cyberhobo yes I can confirm the plugin works as it should when in replies-only mode. It works great!

Dylan, what do we need to do to move forward with this. I apologize if you've already said so above (just say it again) but in jason-simpleton thought the question is: how can we make replies-only mode apply to only comments of a certain comment_type?

Or.... what could you say to give @ronalfy the best way forward?

@cyberhobo
Copy link
Contributor

I may honestly be a bit too far gone from this code to make a good recommendation. In my last comment I was thinking that it would probably be safer to build the feature from scratch rather than trying to piggyback on the existing replies only feature, but I'm not even sure that's true. It might be worth experimenting on a branch to see whether adding an 'OR comment type is X' condition to checks for the enable_replies_only setting behaves the way you want. Just keep in mind that you probably don't want to change behavior for users who are not using replies only for regular comments.

@Vernal
Copy link
Contributor

Vernal commented Aug 5, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants