Commit Graph

5634 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
Albert Yi
7bb1a44cf3 Merge pull request #3488 from BrokenEagle/fix-autocomplete-metatags
Fix metatag handling in autocomplete
2018-01-03 10:28:50 -08:00
BrokenEagle
17ffc36b60 Fix fuzzy autocomlete results 2018-01-03 09:08:19 -08:00
BrokenEagle
2e6f216e10 Fix spacing issues on versions
- Removed pipe character '|' on post version standard listing
2018-01-02 22:50:25 -08:00
BrokenEagle
8f0e4398eb Fix metatags being treated as normal tags
- Add parent metatag defaults any and none
- Add missing user-based metatags to user source
- Remove all negative metatags since the prior code strips the '-'
2018-01-02 19:52:13 -08:00
r888888888
a8c4179083 fix html class in uploads/new 2018-01-02 15:34:43 -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
Albert Yi
ed948ad655 Merge pull request #3486 from BrokenEagle/fix-version-index-revert
Differentiate version index views with reversion links
2018-01-02 12:36:45 -08:00
Albert Yi
927b2f00a2 Merge pull request #3485 from evazion/fix-3484
Fix #3484: /posts: don't show wiki tab for metatags
2018-01-02 10:45:06 -08:00
Albert Yi
99c0c4ade6 Merge pull request #3479 from BrokenEagle/feat-add-iqdb-page
Initial add of IQDB standalone page
2018-01-02 10:29:27 -08:00
BrokenEagle
613beee375 Differentiate version views with reversion links 2018-01-01 19:36:27 -08:00
evazion
f710710cbb PostSets::Post#hide_from_crawler?: hide all metatag searches from crawlers. 2017-12-31 12:27:05 -06:00
evazion
f9ffa2b47a Fix #3484: /posts: don't show wiki tab for metatags. 2017-12-31 12:25:17 -06:00
BrokenEagle
36ef8b4db3 Initial add of IQDB standalone page 2017-12-30 00:11:08 -08:00
Albert Yi
00f091ef3e Merge pull request #3478 from BrokenEagle/fix-post-replacement-autocomplete
Add autocomplete to tags input on post replacements
2017-12-29 15:53:14 -08:00
evazion
3e936748c0 Fix #3468: Approval queue should not show one's own uploads or previous approvals. 2017-12-28 19:36:37 -06:00
evazion
1ca2497015 Fix #3474: Spurious email notifications. 2017-12-28 18:50:08 -06:00
evazion
857fa24697 Fix #3473: Validation warnings for no artist/copyright are still shown on upload failure. 2017-12-28 18:19:28 -06:00
r888888888
59cd4d71d3 fixes #3467 2017-12-28 14:56:03 -08:00
Albert Yi
0f7b9c3a21 Merge pull request #3472 from BrokenEagle/fix-status-active-search
Fix status:active so that it doesn't show flagged posts
2017-12-28 13:47:25 -08:00
BrokenEagle
5d317c19dd Add autocomplete to tags input on post replacements 2017-12-28 12:41:03 -08:00
BrokenEagle
7c9dd80d35 Fix status:active so that it doesn't show flagged posts 2017-12-28 12:17:11 -08:00
Albert Yi
b315ee25bc Merge pull request #3471 from BrokenEagle/fix-controller-views
Various fixes for controller views
2017-12-28 11:18:44 -08:00
BrokenEagle
71e05e8502 Fix nonworking forum_post/new when no topic ID is specified 2017-12-28 10:21:03 -08:00