~ubuntu-branches/ubuntu/utopic/tdiary/utopic

« back to all changes in this revision

Viewing changes to contrib2/filter/hidecomment.rb

  • Committer: Bazaar Package Importer
  • Author(s): Daigo Moriwaki
  • Date: 2011-04-11 21:53:16 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110411215316-ih4gt4q8p29d2wf8
Tags: 3.0.1-1
* New upstream release (Closes: #542801, #594947)
* debian/control:
 - Bumped up Standards-Version to 3.9.1.
 - Updated version dependency.
* debian/tdiary-setup.rb: Followed the upstream changes, incorporating js and
  index.fcgi

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# ref. http://www.cozmixng.org/retro/projects/tdiary/ticket/60
 
3
#
 
4
 
 
5
module TDiary::Filter
 
6
   class HidecommentFilter < Filter
 
7
      def comment_filter( diary, comment )
 
8
         comment.show = false # ツッコミを非表示にするが
 
9
         true # spam扱いにはしない
 
10
      end
 
11
   end
 
12
end
 
13