Commit graph

336 commits

Author SHA1 Message Date
Carl Chenet 3d54a8ea83 users: re-enable username '@' linking in user profiles 2017-05-23 12:48:36 +02:00
Carl Chenet c9b5ec10e3 add twitter oauth linking 2017-05-23 10:41:09 +02:00
Carl Chenet b4f0f57df9 User: username regex is a const now 2017-05-23 10:35:14 +02:00
Carl Chenet 69fc4dbab8 Comment: prevent me-too replies - merged with i18n 2017-05-23 10:27:43 +02:00
Carl Chenet 2bca1027a2 index all the things 2017-05-23 10:16:30 +02:00
Carl Chenet 04d6084d74 eager-load comment votes and their users when showing threads 2017-05-20 15:36:33 +02:00
Carl Chenet 7f5114d0f1 Correct :username validate format 2017-05-20 15:34:34 +02:00
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