evazion
100c1d2828
Fix #3523 : Feedback notification dmails should include the text of the feedback.
2018-01-28 14:32:38 -06:00
evazion
f8a5620768
Partial fix for #3514 : Handle https://twitter.com/i/web/status/:id URL.
2018-01-23 23:07:21 -06:00
evazion
a923a64220
tests: fix pixiv profile image test.
2018-01-20 14:51:05 -06:00
evazion
53f7207716
tests: remove bad_id pixiv test.
2018-01-20 14:50:44 -06:00
evazion
e596a7fd0f
tests: fix <char>_(cosplay) alias test.
2018-01-20 14:26:16 -06:00
evazion
83ab90d495
tests: fix tag removal warning tests.
2018-01-20 13:59:21 -06:00
evazion
e47c983cfd
tests: fix pawoo tags test.
2018-01-20 13:25:13 -06:00
evazion
3d09ce5e55
tests: fix status:active test for #3472 .
2018-01-20 12:50:30 -06:00
Albert Yi
dfd343f70e
Merge pull request #3496 from BrokenEagle/feat-mod-action-event-ids
...
Add categories to mod actions
2018-01-15 11:09:38 -08:00
evazion
4f543671a2
tests: move test/helpers to test/test_helpers.
...
The Rails convention is for test/helpers to be used for testing the view
helpers in app/helpers. We were using it to store certain utility
methods instead. Move these to test/test_helpers so that test/helpers
can be used for its intended purpose.
2018-01-14 16:11:15 -06:00
BrokenEagle
dd8d80eaf7
Updated tests for mod actions
2018-01-14 00:07:20 -08:00
r888888888
604e9e9866
fix some unit tests
2018-01-02 15:12:48 -08:00
r888888888
4a80d6c337
refactor User#validate_sock_puppet to disable for tests
2018-01-02 14:32:38 -08:00
evazion
1ca2497015
Fix #3474 : Spurious email notifications.
2017-12-28 18:50:08 -06:00
evazion
d8eef6ef2b
Fix #1563 : Warn users attempting to upload with very few tags.
2017-12-27 15:04:00 -06:00
Albert Yi
010e70e6c7
Merge pull request #3454 from evazion/fix-3448
...
Fix #3448 : Lower the limit for tag category changes
2017-12-25 13:20:45 -08:00
evazion
91592b2f18
Fix #3448 : Lower the limit for tag category changes.
...
Also allow admins to bypass all restrictions.
2017-12-23 13:44:45 -06:00
evazion
19bda2056c
tags: update category cache whenever category changes.
...
Do `update_category_cache_for_all` in a callback instead of calling it
manually everywhere.
2017-12-23 13:07:23 -06:00
evazion
265377bdbb
Fix #3450 : Aliased tags show up under translated tags.
...
Resolves aliases in translated tags. For example, say we lookup `遠坂凛`
and find `tohsaka_rin` and `toosaka_rin`. We apply aliases so that
`tohsaka_rin` becomes `toosaka_rin`, which is then returned as the only
translated tag.
2017-12-23 12:27:58 -06:00
r888888888
461ddbf017
fixes #3422
2017-12-21 11:33:23 -08:00
Albert Yi
dc744726b6
Merge pull request #3442 from evazion/fix-3440
...
Fix #3440 : Implications aren't applied to automatic tags.
2017-12-19 15:50:36 -08:00
Albert Yi
a1985a9ca2
Merge pull request #3435 from evazion/fix-3324
...
Fix #3324 : Incorporate replacement comment info in the replacement history
2017-12-19 15:02:06 -08:00
r888888888
87d3da95b1
add test case for RelatedTagQuery#other_wiki_category_tags
2017-12-19 13:02:44 -08:00
evazion
8c44789fbc
Fix #3440 : Implications aren't applied to automatic tags.
...
Apply implications after adding automatic tags.
2017-12-19 14:37:12 -06:00
evazion
eede2f0752
Fix #3324 : Incorporate replacement comment info in the replacement history.
2017-12-18 18:02:43 -06:00
Albert Yi
fb6d692c37
Merge pull request #3429 from evazion/fix-bogus-find-artist
...
Fix #2696 : Bogus results on non-matching URL searches for Artists
2017-12-18 10:28:32 -08:00
evazion
859fe99a80
Fix #2696 : Bogus results on non-matching URL searches for Artists
2017-12-17 21:00:34 -06:00
evazion
2a876991da
Accept search[created_at] and search[updated_at] params in all controllers.
2017-12-17 17:37:26 -06:00
evazion
0ca726802f
Fix #3430 : Accept the search[id] param in all controllers.
...
* Allow every controller to take the `search[id]` param.
* Parse the `search[id]` param the same way that the `id:<N>` metatag is
parsed. So `search[id]=1,2,3`, `search[id]=<42`, `search[id]=1..10`, for
example, are all accepted.
2017-12-17 17:36:52 -06:00
Albert Yi
f8f353da0c
Merge pull request #3427 from evazion/feat-autoban-spammers
...
Fix #3408 : More automated measures against spammers
2017-12-15 17:48:22 -08:00
r888888888
b5d72ae8d8
fixes #3422
2017-12-15 17:21:33 -08:00
evazion
002b5e385a
Autoban dmail spambots ( #3408 ).
...
If a user sends spam to more than 10 users within a 24 hour window,
automatically ban them for 3 days.
2017-12-15 19:14:27 -06:00
evazion
e2eb45a5a3
Auto-promote DanbooruBot to Mod. Auto-create DanbooruBot if it doesn't exist.
2017-12-15 18:54:18 -06:00
evazion
b48211cd4a
dmails: only spam check recipient's copy of the dmail.
...
Each dmail creates two copies, one for the sender and one for the
receiver. Only spam check the receiver's copy.
Prevents senders from being able to tell when their messages are being
spam filtered.
2017-12-15 18:54:18 -06:00
evazion
4c39783d28
Fix #3424 : /iqdb_queries.json fails for certain urls.
...
Fix the HTML page -> image URL download rewrite strategy failing for
https://lohas.nicoseiga.jp/thumb/${id}i URLs.
2017-12-15 10:16:06 -06:00
Albert Yi
8d5f1bccaf
Merge pull request #3403 from evazion/fix-favgroup-race
...
Fix race condition when adding posts to favgroups
2017-12-13 14:28:38 -08:00
Albert Yi
42454dddcb
Merge pull request #3402 from evazion/fix-3039
...
Fix test failures under ruby 2.4
2017-12-13 14:28:25 -08:00
Albert Yi
1d901e9307
Merge pull request #3357 from evazion/feat-soft-post-validations
...
Post editing: add warning when creating new tags (#3352 )
2017-12-13 14:24:51 -08:00
evazion
5819afced7
Fix #3412 : Mass updates incorrectly move saved searches.
2017-12-06 14:46:12 -06:00
evazion
d6d73404a9
Apply aliases to characters in <character>_(cosplay) tags ( #3409 ).
2017-12-06 12:47:27 -06:00
evazion
acd49be4cc
Fix #3419 : Deleting a post doesn't clear parent's "parent" status.
...
Bug: when deleting a child post and the "Move favorites to parent?" option is
set, the parent's has_active_children flag is not cleared.
`give_favorites_to_parent` moves the votes, and moving the votes has the
side effect of reloading the post (to get the new score). But reloading
the post wipes out the is_deleted_changed? flag, which is used by `update_parent_on_save`.
Fix: update the `is_deleted` flag *before* moving favorites, so that the
`update_parent_on_save` callback runs before `give_favorite_to_parent` runs.
2017-12-05 19:35:15 -06:00
evazion
feb3ec0750
Fix #3417 : Deleting a user's comment credits the change to them.
2017-12-02 19:41:37 -06:00
evazion
3c6a613964
Fix #3410 : Unable to create a new wiki page.
...
Fix `Post.fast_count(nil)` failing when the user had the "safe mode" or
"deleted post filter" options turned on.
2017-11-29 12:34:07 -06:00
evazion
4939c0345a
Fix test failures when removing posts from deleted pools.
...
These tests failed because removing posts from deleted pools is now
Builder-only.
2017-11-26 18:10:08 -06:00
evazion
a7566ae851
post_view_count_service_test.rb: fix test failure.
2017-11-26 16:17:21 -06:00
evazion
255082d3b5
tumblr: fix test failure.
2017-11-26 15:37:51 -06:00
evazion
80e115b600
favgroups: fix race condition when adding posts to favgroups.
...
Adding or removing a post id to a favgroup's post_ids string is
non-atomic. Lock it to prevent simultaneous updates to the same favgroup
from clobbering each other.
Same bug as #3091 .
2017-11-26 11:02:39 -06:00
evazion
bc3e2438d9
posts: add tests for warning validations.
2017-11-25 17:03:33 -06:00
r888888888
060762defa
add service for purging files from cloudflare cache
2017-11-22 13:19:30 -08:00
evazion
0b5ed163fe
Fix #3395 : fix pixiv API exception when uploading bad pixiv id images.
...
Fixes an exception when attempting to upload a Pixiv image from a
deleted work. The download strategy tries to fetch the source data in
the course of rewriting the URL, which fails if the work has been
deleted from Pixiv.
Raise a BadIDError and leave the URL as-is (don't rewrite it).
2017-11-21 14:40:39 -06:00