Sha256: f85d2cd7c1d99a6fd250ecb9753d78438e590b1e1dba8b7e413a4769f0ad4a71

Contents?: true

Size: 380 Bytes

Versions: 46

Compression:

Stored size: 380 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

46 entries across 40 versions & 2 rubygems

Version Path
tdiary-contrib-5.3.0 filter/commentsize.rb
tdiary-contrib-5.2.4 filter/commentsize.rb
tdiary-contrib-5.2.3 filter/commentsize.rb
tdiary-contrib-5.2.2 filter/commentsize.rb
tdiary-contrib-5.2.1 filter/commentsize.rb
tdiary-contrib-5.2.0 filter/commentsize.rb
tdiary-contrib-5.1.7 filter/commentsize.rb
tdiary-contrib-5.1.6 filter/commentsize.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-contrib-5.1.4/filter/commentsize.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/bundler/gems/tdiary-contrib-d1e41204db13/filter/commentsize.rb
tdiary-contrib-5.1.5 filter/commentsize.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-contrib-5.1.4/filter/commentsize.rb
tdiary-contrib-5.1.4 filter/commentsize.rb
tdiary-contrib-5.1.3 filter/commentsize.rb
tdiary-contrib-5.1.2 filter/commentsize.rb
tdiary-contrib-5.1.1 filter/commentsize.rb
tdiary-contrib-5.1.0 filter/commentsize.rb
tdiary-contrib-5.0.13 filter/commentsize.rb
tdiary-contrib-5.0.12 filter/commentsize.rb
tdiary-contrib-5.0.11 filter/commentsize.rb