mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
comments flag is toggled with "on" or "off"
This commit is contained in:
parent
31bae339f8
commit
c0d8fb1135
1 changed files with 1 additions and 1 deletions
|
|
@ -156,7 +156,7 @@ class Blag
|
|||
post[:body] = RDiscount.new(post[:content], :smart).to_html
|
||||
post[:rfc822] = Time.at(post[:timestamp]).rfc822
|
||||
# comments on by default
|
||||
post[:comments] = true if post[:comments].nil?
|
||||
post[:comments] = true if post[:comments] == 'on' || post[:comments].nil?
|
||||
post
|
||||
end.sort { |a, b| b[:timestamp] <=> a[:timestamp] }
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue