justoverclockl / hot-discussions

Widget that display "hot" (most answered) discussions in Flarum
MIT License
6 stars 6 forks source link

Exclude closed discussions #4

Closed jslirola closed 1 year ago

jslirola commented 1 year ago

I added a change that I needed for a forum and wanted to share the code here. I don't intend for it to be merged as not everyone wants to exclude closed discussions, but you could try adding an option in the extension that allows you to set this.

What do you think about this? I imagine that I should create a migration to store the value of that preference, but I have no experience with these changes, if it's okay with you, you can contribute to this branch or explain me how to do it.

jslirola commented 1 year ago

I learned how to create settings in the admin panel and included one for this case.

justoverclockl commented 1 year ago

merged, thank you!