Commit Graph

11 Commits

Author SHA1 Message Date
Peter Bhat Harkins 79b6a2b69c don't 500 if a user banned/deleted before server move tries to log in
Also add a rake task documenting what jcs did before the server move.
(Though ModNote is new since then.)
2018-11-08 10:56:20 -06:00
Peter Bhat Harkins 759aaf12aa fix bugs in fake_data task, improve safety warnings
I don't see a reason for this to delete everything first, so I touched up the
workflow to provide a warning instead of an error.

Merge #484
2018-05-03 10:21:28 -05:00
Peter Bhat Harkins bf4327de49 rubocop: Layout/AlignParameters, 708
Seriously considered renaming vote_thusly_on_story_or_comment_for_user_because
just becaues of how many weird linewraps it causes.
2018-03-17 14:06:21 -05:00
Peter Bhat Harkins b1f83f545f rubocop: Layout/SpaceBeforeBlockBraces and SpaceInsideBlockBraces, 2977 2018-03-16 16:41:09 -06:00
Peter Bhat Harkins 98adf81867 rubocop: Lint/Unused*, 3365 2018-03-02 07:19:50 -06:00
Chun Li 3bcc33b906 Add text-only stories to fake_data task
For #414
2017-11-28 10:41:58 -05:00
Andrey Chernih 9e849de0f7 Add task to generate test data 2014-07-07 12:15:28 +04:00
joshua stein 9b5ab9b978 try really hard to convert inbound mail to utf8 2014-01-07 11:42:21 -06:00
joshua stein c9571dabaf back out 9ece666 removing utf8mb4 hacks, no longer needed 2013-05-26 12:32:54 -05:00
joshua stein 9ece6666bf add stupid temporary hack to strip out utf8mb4 chars that are screwing up mysql
4-byte utf8 chars like emoji are passed around in ruby fine, but
when they are put into mysql queries, strings get truncated at the
first mb4 character.  to prevent truncation, strip out mb4
characters in most user-controlled fields like comments, story
descriptions and titles, and messages.

to properly support utf8mb4, mysql server 5.5 is needed, the table
encodings need to be changed to utf8mb4, and the mysql2 gem needs to
be upgraded once it supports utf8mb4:

https://github.com/brianmario/mysql2/issues/249
2012-11-07 21:58:10 -06:00
joshua stein 72b67b0103 move monkey patches to a separate file 2012-10-24 14:55:14 -05:00