File: hidecomment.rb

package info (click to toggle)
tdiary-contrib 5.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,772 kB
  • sloc: ruby: 17,305; javascript: 8,263; lisp: 562; xml: 451; php: 61; sql: 40; makefile: 18
file content (13 lines) | stat: -rw-r--r-- 302 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
#
# ref. http://www.cozmixng.org/retro/projects/tdiary/ticket/60
#

module TDiary::Filter
   class HidecommentFilter < Filter
      def comment_filter( diary, comment )
         comment.show = false # ツッコミを非表示にするが
         true # spam扱いにはしない
      end
   end
end