Join GitHub today
Add comment templates to comment form #3317
Hi, this is a first-timers-only issue. This means we've worked to make it more legible to folks who either haven't contributed to our codebase before, or even folks who haven't contributed to open source before.
If that's you, we're interested in helping you take the first step and can answer questions and help you out as you do. Note that we're especially interested in contributions from people from groups underrepresented in free and open source software!
We know that the process of creating a pull request is the biggest barrier for new contributors. This issue is for you
If you have contributed before, consider leaving this one for someone new, and looking through our general help wanted issues. Thanks!
Actually @debrachoo -- i had another idea -- to try to change this line:
body = Node.find(@node.power_tag('comment-template').to_i).body
body = Node.find_by(slug: @node.power_tag('comment-template')).try(:body)
This should both make it possible to specify a template by the page URL instead of its id, AND have it default to 'nil' if nothing's found. Make sense? Thanks for your help!