mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-04-27 14:57:40 +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[:body] = RDiscount.new(post[:content], :smart).to_html
|
||||||
post[:rfc822] = Time.at(post[:timestamp]).rfc822
|
post[:rfc822] = Time.at(post[:timestamp]).rfc822
|
||||||
# comments on by default
|
# comments on by default
|
||||||
post[:comments] = true if post[:comments].nil?
|
post[:comments] = true if post[:comments] == 'on' || post[:comments].nil?
|
||||||
post
|
post
|
||||||
end.sort { |a, b| b[:timestamp] <=> a[:timestamp] }
|
end.sort { |a, b| b[:timestamp] <=> a[:timestamp] }
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue