Commit graph

329 commits

Author SHA1 Message Date
Carl Chenet 19ac5369c5 Extract username regex 2017-05-20 15:29:35 +02:00
Carl Chenet 1cc5ee6c52 Story: move archive URL to model, escape URL in case it has query params - merged with i18n 2017-05-20 15:18:56 +02:00
Carl Chenet db3384f974 Story: sort 2017-05-20 15:13:26 +02:00
Carl Chenet a67236d097 Story: bump up hotness for stories authored by users 2017-05-20 14:50:03 +02:00
Carl Chenet cd554c410c User: show github username in profile 2017-05-20 14:06:20 +02:00
Carl Chenet 52fb11b7e4 settings: add github integration, move pushover to external - merged with i18n 2017-05-20 13:33:46 +02:00
Carl Chenet 3faf62c53c Search: try to compile regexp first before sending to SQL 2017-05-19 14:01:10 +02:00
Carl Chenet b347a5f453 how did these gitkeep files get here... 2017-05-19 10:30:29 +02:00
Carl Chenet fd25aed94b update to rails 4.2.8 - merged with i18n 2017-05-19 10:29:12 +02:00
Carl Chenet a702fae66a highlight stories to their authors that have suggestions - merged with i18n 2017-05-18 19:02:21 +02:00
Carl Chenet 79964100bb Story: when calculating hotness, always penalize downvotes 2017-05-17 19:14:01 +02:00
Carl Chenet fd1148dc6b add TOTP-based two-factor authentication option 2017-05-17 11:29:54 +02:00
Carl Chenet 1ac81cbe2a missing i18n for dragons 2017-05-17 11:02:32 +02:00
Carl Chenet 82a8a7155a here be dragons - merged with i18n 2017-05-17 10:23:25 +02:00
Carl Chenet c7cf9591ef User: sort BANNED_USERNAMES 2017-05-16 19:33:17 +02:00
Carl Chenet 462080150f search: catch sphinx errors gracefully and show an error - merged with i18n 2017-05-16 19:30:48 +02:00
Carl Chenet 64c4682cc7 Comment: regardless of confidence, negative thread-leaders go 2017-05-16 18:50:50 +02:00
Carl Chenet 84e125c328 Comment: fix an off-by-one 2017-05-16 18:38:51 +02:00
Carl Chenet e8d11e28d7 Comment: cap downvotes to -5, only collapse when it reaches 2017-05-11 12:37:38 +02:00
Carl Chenet cabe52b31d Story: look through self.taggings since it's eager loaded in list views 2017-05-08 19:18:37 +02:00
Carl Chenet 6c39cb4784 i18n of flash error for blank comment. fixes #30 2016-12-07 10:51:18 +01:00
Carl Chenet b8144e19c0 i18n of moderation of the comments. closes #12 2016-12-06 18:09:55 +01:00
Carl Chenet 050ce74871 translate moderation messages related to stories 2016-12-06 17:56:26 +01:00
Carl Chenet 707fdb87de translate story and comments flages. fixes #7 2016-11-24 17:22:56 +01:00
joshua stein 335e1fd0c4 User: experiment with a minimum karma required to downvote comments 2016-11-03 16:20:39 -05:00
joshua stein ef0601f65b remove comment downvoting 2016-10-30 13:10:49 -05:00
joshua stein b5f6ab36a8 don't count deleted comments towards user's comment count 2016-08-19 00:00:18 -05:00
joshua stein c602b01965 Story: revert cb300450f, using newest created_at of all merged
This behavior is confusing.
2016-08-19 00:00:18 -05:00
chaica 9506b1ce10 I18n moderations (#301)
* translate moderation view, controller and model

* support for i18n in the moderation controller

* support for i18n in the moderation model - use interpolation for variables inside strings

* support for i18n in controller model - localize time and date string format for printing time and date of the moderation action
2016-07-05 10:02:14 -05:00
joshua stein f2602432c9 separate can_invite? and banned_from_inviting? 2016-06-22 15:30:44 -05:00
joshua stein b2182f5ca7 Story: in checking for previous duplicates, fetch moderated ones
this will block a moderated story from being submitted again inside
the window

closes #291
2016-06-22 15:30:44 -05:00
joshua stein cb300450fb Story: use newest created_at of all merged stories for calculating hotness
we already take their points, but if they have a much newer
created_at and we've been moved off the front page, points won't
save us.  use their created_at to be fresher.

should fix #300
2016-06-22 15:30:44 -05:00
joshua stein d8c7f98cfd prevent users with much negative karma from submitting new stories 2016-06-22 15:30:44 -05:00
joshua stein 3bebdb80a7 User: clear deleted_at when unbanning, since we probably set it 2016-06-10 16:31:13 -05:00
joshua stein 30166dd120 Merge pull request #293 from nyanpasu/master
Allow admin/moderator to disable user from inviting
2016-06-10 17:20:48 -04:00
joshua stein d3a826d80e Story: fix saving old stories with inactive tags 2016-06-01 14:36:09 -05:00
nyanpasu 99f78ad10c Send pm instead of email on invite disable 2016-05-19 09:01:27 +08:00
nyanpasu 19526c2d3f Don't delete user after disabling invites 2016-05-19 09:01:27 +08:00
nyanpasu aa0ffeb37b Allow admin/moderator to disable user from inviting 2016-05-16 02:40:46 +08:00
joshua stein d1c9aeaaa3 Story: make title_as_url output shorter urls 2016-05-04 14:40:06 -05:00
joshua stein 4c5cf4a542 require a minimum karma to suggest story title/tag suggestions 2016-05-02 17:57:19 -05:00
joshua stein b204775e8f Story: don't allow a story to be merged into itself 2016-04-25 13:24:50 -05:00
joshua stein a7d426581d Story: shrink hotness window to 22 hours 2016-04-12 11:48:47 -05:00
joshua stein 1fb6eb6eb2 drop SUGGESTION_QUORUM to 2 2016-04-06 13:22:46 -05:00
joshua stein a5928b675d implement hats list and request/approval system
closes #281
2016-04-06 13:19:46 -05:00
joshua stein e85afa2425 StoryRepository: simplify 2016-03-28 17:14:55 -05:00
joshua stein 437124da4e StoryRepository: make positive_ranked honest 2016-03-28 17:14:43 -05:00
joshua stein 41ba0b20dd Hat: add css class of hat_(actual_hat_name) 2016-03-24 14:58:06 -05:00
joshua stein d54427df21 make 'link' on comments use very short url 2016-03-24 13:19:26 -05:00
joshua stein 2b5ba63087 Comment: if user is banned, make gone text reflect that 2016-02-10 16:12:11 -06:00