kikito
0cf592af71
Fixes two issues in comment_tree
...
* The descendants list for a comment was not being built correctly
* The root comments must be ordered “newest first”, but their
descendants must be ordered “newest last”
2015-10-30 20:06:36 +01:00
kikito
a7daf0108b
sorts comments by creation date after sorting by confidence_score
2015-10-28 17:34:02 +01:00
kikito
f5d9ea4357
adds confidence_score capacity to the comment model
2015-10-28 16:25:35 +01:00
Juanjo Bazán
b979f871dd
removes unused method
2015-09-24 12:42:21 +02:00
Juanjo Bazán
23eba622a2
fix bug when blocking users
2015-09-22 16:30:43 +02:00
kikito
343025872b
changes comment moderation to be similar to proposals moderation
2015-09-22 14:20:37 +02:00
kikito
793bc52d00
recalculates comments_count when restoring in addition to when hiding a comment
2015-09-18 11:00:18 +02:00
Juanjo Bazán
df72ece3c4
[admin/comments] remove comments of blocked users
2015-09-17 13:54:15 +02:00
kikito
231665020e
Allows commenting Proposals in Comment validation
2015-09-12 14:05:24 +02:00
kikito
d57d538f3b
Extracts Flammable module from comment & debate
2015-09-12 14:05:24 +02:00
David Gil
8ed434cc8b
uses more rails-like syntax in scopes
2015-09-10 18:44:33 +02:00
kikito
2d3015703d
replaces constants by class methods + private functions. Fixes broken tests
2015-09-10 13:02:21 +02:00
kikito
8c9f189d75
merges master and fixes conflicts
2015-09-09 19:36:23 +02:00
kikito
5e7a5b57de
Adds max lengths and validations in models
2015-09-09 18:32:36 +02:00
Juanjo Bazán
92bff4b4c3
adds :touch to ancestry
...
now nested comments caches invalidates automagically
2015-09-09 14:46:09 +02:00
rgarcia
0bca1c5b95
upgrades ruby hash syntax
2015-09-05 22:02:51 +02:00
kikito
08c31c5985
calls all the sorting scopes the same way
2015-09-04 14:17:59 +02:00
kikito
9bb63e9b32
Makes comments increase the hot_score
2015-09-04 14:04:45 +02:00
Juanjo Bazán
136c1e73ed
uses ancestry to retrieve debate comments
2015-09-03 16:32:54 +02:00
Juanjo Bazán
dee2d0196b
ancestries
...
moves to ancestry from acts_as_commentable_with_threading
2015-09-02 19:23:09 +02:00
kikito
62415991c0
Fixes an issue found on comments using the dev_seed
2015-09-01 20:11:45 +02:00
kikito
b872d9a46d
fixes failing specs
2015-08-28 19:19:18 +02:00
kikito
a5e48693fe
Implements admin interface for Comments incl. filters
2015-08-28 10:56:43 +02:00
kikito
cd982768f2
Renames the "archive" action to "ignore_flag" (+)
...
* archived_at -> ignored_flag_at
* archived? -> ignored_flag?
* archive -> ignore_flag
* pending -> pending_flag_review
* archived (scope) -> with_ignored_flag
* I18n changes
2015-08-27 11:43:58 +02:00
kikito
909dfb4ce3
Several renamings
...
InappropiateFlag -> Flag
x.flag_as_inappropiate -> x.flag
x.undo_flag_as_inappropiate -> x.unflag
X.flagged_as_inappropiate -> x.flagged
flag-as-inappropiate-actions views & css -> flag-actions views & css
2015-08-27 10:48:49 +02:00
Raimond Garcia
4bd5ff0116
Merge pull request #253 from AyuntamientoMadrid/counter-cache-comments
...
Counter cache column for Debate's comments
2015-08-26 20:05:57 +02:00
kikito
48ef4df0c3
Adds Comment#for_render
2015-08-26 19:41:42 +02:00
Juanjo Bazán
dacbe27fda
uses cache counter for debate's comments
2015-08-26 17:26:17 +02:00
kikito
25c3c4d1f1
merges master and fix conflicts
2015-08-26 14:48:16 +02:00
kikito
6110284356
removes all references to "review" (replaced by "archive")
2015-08-26 13:48:57 +02:00
Juanjo Bazán
cfe583fbe6
adds cache to votes on Comments
2015-08-25 16:26:36 +02:00
Alberto Garcia Cabeza
8037a82fef
Adds styles to moderation admin
2015-08-25 15:19:54 +02:00
Juanjo Bazán
030fd49120
allows comment as moderator/administrator
...
Ref: #170
2015-08-24 18:17:04 +02:00
Juanjo Bazán
57228636c4
adds as_moderator/administrator methods to comment
2015-08-24 17:47:09 +02:00
kikito
169809496e
Adds filters & refactors to comment moderation
2015-08-22 20:28:48 +02:00
kikito
4f0c49f921
Changes moderation/comments to allow for different commentable_types
2015-08-22 09:15:20 +02:00
kikito
2c49d30952
Adds review-related methods to comment & debate
2015-08-21 21:58:48 +02:00
kikito
ee881230ba
merges master and fixes conflicts
2015-08-20 18:50:10 +02:00
kikito
246145e4cb
adds abilities for regular users
2015-08-20 18:45:32 +02:00
Juanjo Bazán
896fe41db0
favors with_hidden
2015-08-20 17:52:59 +02:00
kikito
8944327405
adds InappropiateFlag model with relations and specs
2015-08-20 16:03:00 +02:00
Juanjo Bazán
b340d7741a
adds hiding users by moderators
2015-08-20 13:16:37 +02:00
Juanjo Bazán
ced2a05063
adds eager loading to avoid N+1 queries
2015-08-18 16:54:49 +02:00
rgarcia
f31ed2940d
adds moderation to comments and debates [ #136 ]
2015-08-17 13:39:31 +02:00
rgarcia
9abe303b31
removes unused method
2015-08-16 23:05:01 +02:00
David Gil
7c8948639f
move model code out of migration
2015-08-12 14:59:54 +02:00
David Gil
1ee3378768
adding a few tests
2015-08-12 14:59:54 +02:00
David Gil
575c2dd281
faking children_count counter cache due to possible bug with awesome_nested_set
2015-08-12 14:59:21 +02:00
David Gil
0291f574a2
add vote counters to comments
2015-08-12 14:59:21 +02:00
David Gil
19ef481917
adding counter_cache to comments children and WIPing on the issue
2015-08-12 14:58:36 +02:00