Commit Graph

6684 Commits

Author SHA1 Message Date
r888888888
f82d6fa686 fixes #3512 2018-01-30 11:04:50 -08:00
r888888888
cee3c5522b update dtext gem 2018-01-30 10:54:11 -08:00
Albert Yi
47bd812811 Merge pull request #3525 from BrokenEagle/fix-index-default-order
Fix index default order
2018-01-29 13:11:24 -08:00
BrokenEagle
d829ab3a00 Move all order logic to models
- Have a default order for each model
-- The overall default is ID DESC
- Allow for custom orderings
-- When comma-separated IDs are used
2018-01-29 11:42:53 -08:00
evazion
5ea61c6921 /bans: fix undefined ordering when no params are passed.
Fixes the /bans listing being ordered randomly by default.
2018-01-28 15:38:12 -06:00
evazion
100c1d2828 Fix #3523: Feedback notification dmails should include the text of the feedback. 2018-01-28 14:32:38 -06:00
evazion
64186c004f Add pbs.twimg.com to artist finder blacklist.
ref: https://danbooru.donmai.us/forum_topics/14938.
2018-01-26 18:30:18 -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
r888888888
f83480cc8a hard core path to rbenv root 2018-01-22 18:04:55 -08:00
Albert Yi
1afce1c88e Merge pull request #3511 from evazion/fix-update-gems
Upgrade gems
2018-01-22 12:55:55 -08:00
evazion
2833239fa0 Fix #3513: Missing rating error causes weird behavior in tag list on upload page.
Fix bug in the double submit prevention from #2789. Rather than
unbinding the enter key on submit, have the enter key click the submit
button instead. This avoids form submission when the submit button is disabled.
2018-01-21 11:55:24 -06:00
evazion
46b0f9e6d6 Update dotenv.
dotenv-2.2.1 no longer loads .env.local in the test environment. Load it
manually for backwards compatibility.
2018-01-20 19:04:48 -06:00
evazion
074a4be38f Update gems. 2018-01-20 19:04:48 -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
57c4d2a54f related tag calculator: fix unstable sorting of related tags.
Fix this test failure:

    1) Failure:
    RelatedTagCalculatorTest#test_: A related tag calculator should convert a hash into string format.
    [test/unit/related_tag_calculator_test.rb:65]:
    Expected: "aaa 3 bbb 3 ccc 2 ddd 1"
      Actual: "bbb 3 aaa 3 ccc 2 ddd 1"

The related tag string didn't use a stable sort. Sort first by tag
count, then by tag name.
2018-01-20 14:33:36 -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
2deefcc090 Fix exception when viewing /favorite_groups while logged out.
Also fixes a test failure in the favgroups controller tests.
2018-01-20 13:47:41 -06:00
evazion
e47c983cfd tests: fix pawoo tags test. 2018-01-20 13:25:13 -06:00
evazion
c29785268d tests: fix iqdb controller test (#3479). 2018-01-20 13:22:05 -06:00
evazion
ce06736374 tests: fix timestamp comparison in artist notes saving test.
Equality test failed due to microsecond level differences. Truncate to
seconds to avoid this.
2018-01-20 13:08:40 -06:00
evazion
3d09ce5e55 tests: fix status:active test for #3472. 2018-01-20 12:50:30 -06:00
r888888888
f501281139 update cityhash gem 2018-01-18 14:25:18 -08:00
r888888888
97fe82e74b fix default naming scheme for large file urls 2018-01-18 12:52:17 -08:00
Albert Yi
9f578b3270 Merge pull request #3504 from BrokenEagle/fix-3494
Fix how cosplay tags are handled
2018-01-18 12:47:02 -08:00
evazion
989854b3dd Fix #3507: Include ban length in feedback. 2018-01-17 19:53:49 -06:00
BrokenEagle
f626c7ebd7 Fix how cosplay tags are handled 2018-01-15 18:01:06 -08:00
Albert Yi
7ca3d2735c Merge pull request #3495 from BrokenEagle/fix-missing-super-search
Fix missing controllers for search[id] (Ref #3430)
2018-01-15 11:11:24 -08: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
Albert Yi
20487e131d Merge pull request #3498 from evazion/fix-3497
Fix #3497: Invalid DText denial of service attack
2018-01-15 11:07:43 -08:00
Albert Yi
33e25314e7 Merge pull request #3501 from BrokenEagle/fix-2974
Fix erroneous updates to wiki page when nothing changes
2018-01-15 10:52:36 -08:00
BrokenEagle
160829d262 Don't update the updater_id when nothing has changed 2018-01-14 20:15:41 -08:00
BrokenEagle
f1bf1440b4 Don't save wiki page when notes value is null 2018-01-14 20:15:29 -08:00
evazion
7a0fb0f5d3 Fix #3500: Redirect API endpoints with md5 query param to correct format. 2018-01-14 20:36:57 -06:00
evazion
88f4a56890 Fix #3497: Invalid DText denial of service attack. 2018-01-14 16:14:18 -06: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
BrokenEagle
85f04a826a Added additional mod actions 2018-01-14 00:07:20 -08:00
BrokenEagle
fcdc61f111 Add search interface for mod actions 2018-01-14 00:07:16 -08:00
BrokenEagle
3c45273694 Add category for mod actions 2018-01-13 20:55:52 -08:00
BrokenEagle
b9964e97a7 Don't log comment update action on delete 2018-01-13 20:42:07 -08:00
BrokenEagle
65eb94f8f9 Remove unused mod actions 2018-01-13 20:42:02 -08:00
BrokenEagle
ba7fadf6e9 Fix missing controllers for search[id] 2018-01-13 10:01:57 -08:00
r888888888
1a7bfca9bd fix reference to config.image_server_host 2018-01-04 13:10:15 -08:00
r888888888
b60f4d62fd delegate post url generation to config 2018-01-04 13:06:52 -08:00
evazion
7c8cfc1e31 Fix #3492: Add corrupted_image to list of default removed tags for replacements. 2018-01-03 17:44:59 -06:00
r888888888
af6ab74f8d support dedicated image servers 2018-01-03 13:32:50 -08:00
Albert Yi
3a5eaad685 Merge pull request #3490 from BrokenEagle/fix-autocomplete-results
Fix fuzzy autocomlete results
2018-01-03 11:33:11 -08:00
Albert Yi
e8f2160901 Merge pull request #3489 from BrokenEagle/fix-post-version-spacing
Fix spacing issues on versions
2018-01-03 10:29:29 -08:00