Sha256: 5a513c60352aef4ebcb182f0c7cb0bea46bb8f153755fb6f2269e95a8914bb32

Contents?: true

Size: 389 Bytes

Versions: 6

Compression:

Stored size: 389 Bytes

Contents

#
# comment_size.rb: included TDiary::Filter::CommentSizeFilter class
#

module TDiary
   module Filter
      class CommentsizeFilter < Filter
         def comment_filter( diary, comment )
            return false if comment.body.size > @conf['comment.size']
            true
         end
         
         def referer_filter( referer )
            true
         end
      end
   end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tdiary-contrib-4.0.4 filter/commentsize.rb
tdiary-contrib-4.0.3 filter/commentsize.rb
tdiary-contrib-4.0.2.1 filter/commentsize.rb
tdiary-contrib-4.0.2 filter/commentsize.rb
tdiary-contrib-3.2.2.20130614 filter/commentsize.rb
tdiary-contrib-3.2.2.20130518 filter/commentsize.rb