Commit Graph

6881 Commits

Author SHA1 Message Date
evazion
2fd91bfa20 Load danbooru_default_config.rb earlier.
Load danbooru_default_config.rb inside application.rb instead of in an
initializer so that it's available as soon as possible.
2018-04-19 00:49:50 -05:00
evazion
d70a0a64bd Remove controller-level force_ssl checks.
Obsoleted by force_ssl being globally enabled by default.
2018-04-19 00:49:50 -05:00
evazion
c50ad41792 nginx.danbooru.conf: fix X-Forwarded-Proto.
Sending `http` is wrong, it causes a redirect loop if HSTS is enabled.
2018-04-19 00:45:55 -05:00
evazion
909c9aad5a Fix user id cache expiration.
Use a delayed job instead of a HTTP request to invalidate the user id
cache on both servers.
2018-04-19 00:45:51 -05:00
evazion
e16ae00efc Fix hardcoded http:// urls. 2018-04-19 00:45:10 -05:00
evazion
83b96b4f3f Fix #3652: URL addons stripped when comments are created/edited. 2018-04-18 23:58:35 -05:00
evazion
5082a25321 uploads.js: fix call to $.unique (deprecated as of jQuery 3.0) 2018-04-18 19:02:17 -05:00
evazion
7d295a11d0 fixup! Fix #3654: Deviantart commentaries fail fetching. 2018-04-18 19:01:33 -05:00
evazion
c4ae2bd2fa Fix #3654: Deviantart commentaries fail fetching. 2018-04-18 18:44:56 -05:00
evazion
9cafffd20a /user_upgrade/new: fix broken account upgrade link.
ref: https://danbooru.donmai.us/forum_posts/145267
2018-04-18 10:34:41 -05:00
Albert Yi
e9dc4a397e switch to jquery 3.3.1 on cdn 2018-04-17 16:32:50 -07:00
Albert Yi
34d9cc6d57 fixes #3648 2018-04-17 16:28:17 -07:00
evazion
0f883e7009 Fix #3649: Replace highlighting of "photoshop" with "third-party_edit" in modqueue. 2018-04-17 17:19:18 -05:00
evazion
17aabaca29 modqueue: move quality warning tags into config file. 2018-04-17 17:15:06 -05:00
evazion
41eba9d6b4 Move stylesheets/erb/* to stylesheets/specific/erb/*. 2018-04-17 16:55:52 -05:00
evazion
9b6136fb55 Fix missing parameter exception in /user_feedbacks/new.
ref: https://danbooru.donmai.us/forum_topics/9127?page=233#forum_post_145227
2018-04-17 10:23:55 -05:00
Albert Yi
9957c4c0e2 fixes #3644 2018-04-16 16:43:51 -07:00
Albert Yi
1c88587c55 fixes null uid field error for #3645 2018-04-16 16:41:46 -07:00
Albert Yi
97dd0680df remove download query from post file size link 2018-04-16 16:41:46 -07:00
Albert Yi
2f142ab1aa Merge pull request #3643 from evazion/fix-3642
Fix #3642: Issues with sequential pagination
2018-04-16 16:16:22 -07:00
evazion
e49e6f49bb Fix #3641: Can't add tags via Add Commentary dialog. 2018-04-16 12:12:28 -05:00
evazion
2c46191f99 artists: fix edit form fields not being prefilled.
* Fix the artist URLs field not being prefilled when clicking
  "Create new artist" in the "Fetch source data" box.

* Fix the artist name field not being prefilled when clicking
  "Create new artist entry" on the /artists/show_or_new?name=<name> page.
2018-04-14 21:26:45 -05:00
evazion
d42ef7d7dc Fix #3642: Issues with sequential pagination.
As of Rails 5, overriding `to_a` on an ActiveRecord collection does
nothing. We need to override `records` instead.

ref: cdd45fa09d
2018-04-14 10:56:20 -05:00
evazion
074b66bf27 pagination: prefer extending over `extend.
The `extending` method is the preferred way to add methods to an ActiveRecord collection.

* http://api.rubyonrails.org/classes/ActiveRecord/QueryMethods.html#method-i-extending
* https://ruby-doc.org/core-2.5.0/Object.html#method-i-extend
2018-04-14 10:56:16 -05:00
evazion
d2e2b3d2b1 pagination: add paginator tests. 2018-04-14 10:56:16 -05:00
evazion
5c94c0cefe Fix #3640: Can't undo votes. 2018-04-13 22:50:13 -05:00
evazion
d66df41b58 Revert "common.js: show error on ajax failures." (#3640)
This reverts commit ad66b8abc9.
2018-04-13 22:50:03 -05:00
evazion
302994e5d9 Fix #3639: Favorite count pixiv tags aren't skipped by translated tags. 2018-04-13 22:39:52 -05:00
Albert Yi
f2adbba241 switch postarchive to use belongs_to_updater (fixes #3629) 2018-04-13 12:29:48 -07:00
Albert Yi
06559c4ae4 fix missing urls in artists (fixes #3632) 2018-04-13 12:25:49 -07:00
Albert Yi
31a9605ecb fix source mapping for deviantart sources on origin-orig subdomain (fixes #3617) 2018-04-13 11:56:03 -07:00
Albert Yi
32025b77d3 remove fav_string from posts api unless user is moderator (fixes #3633) 2018-04-13 11:45:50 -07:00
evazion
28cd633210 Fix #3637: Bookmarklet fails on artstation for some posts. 2018-04-13 11:18:09 -05:00
evazion
76792431be Fix #3636: Tag similarity on autocomplete no longer working. 2018-04-13 00:37:47 -05:00
evazion
bca483cefd Fix #3628: Retry button is displayed for failed uploads that cannot succeed even if retried 2018-04-12 22:14:06 -05:00
evazion
e4096460eb Fix #3622: Approval links on mod queue have same ID attribute. 2018-04-12 21:48:09 -05:00
evazion
611dacfd22 modqueue: remove dead "approve all" / "hide all" code (disabled since #2446). 2018-04-12 21:43:42 -05:00
evazion
af02113e3c /wiki_pages/new: fix "param is missing or the value is empty: wiki_page" 2018-04-12 21:31:34 -05:00
evazion
bc0488df26 Fix #3631: Can no longer edit existing notes. 2018-04-12 18:31:07 -05:00
Albert Yi
19cc8ebf9e fixes #3630 2018-04-12 16:02:41 -07:00
evazion
af9a09c2cb Fix #3626: Artist creation page doesn't autocomplete the name anymore. 2018-04-12 16:23:59 -05:00
Albert Yi
5546d9e98b fixes #3627 2018-04-12 14:20:02 -07:00
Albert Yi
b99600bbbe fixes #3625 2018-04-12 14:12:27 -07:00
Albert Yi
c785d00eb6 remove window.console.log 2018-04-12 13:58:28 -07:00
Albert Yi
9975b2dd35 don't require saved_search params when creating a new saved search 2018-04-12 13:56:02 -07:00
Albert Yi
26a2e60d04 fixes #3623 2018-04-12 13:36:56 -07:00
Albert Yi
883b36ac2e fixes #3620 2018-04-12 13:00:48 -07:00
Albert Yi
cd88a8df9f fixes #3620 2018-04-12 13:00:48 -07:00
evazion
ad1ed5a510 Fix #3623: Changes to existing notes aren't being saved. 2018-04-12 14:52:50 -05:00
Albert Yi
37ba6714d1 fixes #3617 2018-04-12 12:11:27 -07:00