evazion
907881aced
post tooltips: increase delay, constraint height, condense tags ( #3666 ).
...
* Increase hover delay to 450ms.
* Set max height and add scrollbars for long tag lists.
* Condense tag list (don't put categories on separate lines).
2018-04-27 13:55:14 -05:00
evazion
d731ec4393
Fix #3673 : Autocomplete: hide menu after hitting space.
2018-04-27 13:24:23 -05:00
evazion
c398c8fff6
autocomplete: trigger completion for metatags after typing colon ( #3558 )
...
When completing metatags (e.g. `rating:safe`), show completions
immediately after typing the colon (`rating:`), instead of after the
first letter (`rating:s`).
2018-04-27 01:22:26 -05:00
evazion
2f1d185c3e
/posts.json: add is_favorited attribute ( #3633 )
...
ref: https://github.com/r888888888/danbooru/issues/3633#issuecomment-384863568 .
2018-04-27 00:48:53 -05:00
evazion
6ab58104d4
jquery: fix obsolete use of load.
...
ref: https://jquery.com/upgrade-guide/3.0/#breaking-change-load-unload-and-error-removed
2018-04-27 00:38:46 -05:00
evazion
3ef23faae2
Fix #3669 : Normalize mobile.twitter.com sources.
...
* Normalize sources to https://twitter.com/#{artist_name}/status/#{status_id} after upload.
* Make fetch source data use screen name instead of display name for the artist name.
2018-04-27 00:36:13 -05:00
evazion
c9f35cbacc
tag alias corrections: fix ActionView::Template::Error exception ( #3668 ).
2018-04-27 00:17:14 -05:00
evazion
63a29247b2
post tooltips: disable on pool/favgroup order pages.
...
Disable to avoid tooltips appearing while trying to drag and drop.
2018-04-27 00:08:21 -05:00
evazion
72664e0105
saved searches: fix broken query/label autocomplete.
2018-04-26 23:55:13 -05:00
evazion
a49cb1c105
jquery: fix obsolete uses of success ( #3548 ).
2018-04-26 23:53:49 -05:00
evazion
f7748a2ed7
jquery-ui: fix font color in notice boxes ( #3671 ).
2018-04-26 23:28:00 -05:00
evazion
dd2abeb180
jquery-ui: fix autocomplete menu styling ( #3671 ).
...
* Wrap menu items in a div.
* Replace ui-state-focus with ui-state-active.
* Make active items have a grey background.
ref: http://jqueryui.com/upgrade-guide/1.12/#require-wrappers-for-each-menu-item
ref: http://jqueryui.com/upgrade-guide/1.12/#use-consistent-styling-for-focused-and-active-items
2018-04-26 23:18:00 -05:00
evazion
a11dbb9186
jquery-ui: fix fonts in dialog boxes ( #3671 ).
...
Fix the default jquery-ui theme overriding our body font with Arial.
2018-04-26 23:13:21 -05:00
evazion
36b819fdf8
notes.js: fix deprecated dialogClass option.
...
ref: http://jqueryui.com/upgrade-guide/1.12/#dialog
2018-04-26 22:11:17 -05:00
evazion
87c6698d55
sources.js: remove (dead code).
2018-04-26 21:33:28 -05:00
evazion
f7a44ae8dd
Fix redirect in "disable responsive mode" link.
2018-04-26 21:31:53 -05:00
evazion
ed2b89a947
post tooltips: temp fix for jquery-ui 1.11 incompatibility.
...
ref: https://github.com/r888888888/danbooru/pull/3666#issuecomment-384775144
2018-04-26 15:49:14 -05:00
evazion
bb3c88dbc8
thumbnails: replace browser tooltips with qtip2 tooltips ( #3664 ).
2018-04-25 23:06:11 -05:00
evazion
e772de40a7
posts: add /posts/{id}.html?variant=tooltip template.
2018-04-25 22:12:26 -05:00
evazion
f2998585e9
tag_set_presenter: refactor inline_tag_list_html.
...
* Sort tags by category in inline tag lists (on /comments page, /uploads page, and modqueue).
* Move tags css to common/erb/tags.scss.erb.
2018-04-25 22:12:10 -05:00
evazion
442964b0eb
tag_set_presenter: refactor split_tag_list_html.
...
* Make category headers optional.
* Make category order configurable.
* Clean up code.
2018-04-25 22:12:10 -05:00
evazion
fdd5ea3e78
Fix #3661 : Account upgrade page directs to dead link instead of correct safebooru page.
2018-04-22 01:02:38 -05:00
evazion
8fb72ffcaf
Fix #3660 : Resize-to-fit broken for previews on upload page.
2018-04-20 21:26:06 -05:00
evazion
c9acbbdf9e
uploads: revamp /uploads listing UI ( #3657 ).
...
* Add thumbnails.
* Colorize tags.
* Rearrange columns.
* Add rating/source/size/dimensions info.
* Add "»" search drilldown links.
2018-04-20 15:52:09 -05:00
evazion
e6ce05eb29
uploads: add more search options for /uploads listing ( #3657 ).
2018-04-20 15:51:56 -05:00
evazion
ff4616e7b2
uploads: add upload-specific secondary links.
2018-04-20 15:51:56 -05:00
evazion
8083c7daae
uploads: fix batch upload page to work without bookmarklet.
...
* Add a form to the /uploads/batch page so that it can be used without
the bookmarklet.
* Fix an exception when no url is given.
2018-04-20 15:51:56 -05:00
evazion
09462aefeb
Fix #3522 : Enable HSTS.
2018-04-19 01:39:46 -05:00
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
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
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: https://github.com/rails/rails/commit/cdd45fa09d76f7c16ccbb6682e672a44f82174a0
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
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
evazion
af9a09c2cb
Fix #3626 : Artist creation page doesn't autocomplete the name anymore.
2018-04-12 16:23:59 -05:00
evazion
ad1ed5a510
Fix #3623 : Changes to existing notes aren't being saved.
2018-04-12 14:52:50 -05:00
evazion
159b0e8a22
tests: add daily & weekly maintenance tests.
2018-04-11 22:33:28 -05:00
evazion
4233d2149f
Fix delete_all / destroy_all calls.
2018-04-11 22:33:11 -05:00
evazion
ab25e73cd7
deviantart: replace html scraper with api client ( #3260 ).
2018-04-09 20:53:14 -05:00
evazion
2d6b7177de
deviantart: add api client.
2018-04-09 20:53:06 -05:00
evazion
40827442c7
Fix #3614 : IQDB: don't index placeholder thumbnails.
2018-04-08 12:15:24 -05:00
evazion
2cbec785ea
Fix #3613 : Broken preview images for flash files.
2018-04-08 11:49:30 -05:00
evazion
5f930630e5
danbooru_default_config.rb: allow setting boolean options in env vars.
...
Allow setting e.g. `aws_s3_enabled?` with DANBOORU_AWS_S3_ENABLED="true"
in the .env file.
2018-04-08 11:24:53 -05:00
evazion
4097305e52
StorageManager::Hybrid#open_file: fix typo.
2018-04-07 21:06:38 -05:00
evazion
ad66b8abc9
common.js: show error on ajax failures.
...
Make `link_to ..., remote: true` ajax requests display an error notice on failure.
2018-04-07 18:04:43 -05:00
evazion
8de20d2b36
Iqdb::Download.find_similar: raise on iqdb errors.
...
* Raise an error on iqdb errors instead of returning no matches.
* Include the iqdb api response in the error response.
2018-04-07 18:03:10 -05:00
evazion
b88a66dd30
Iqdb::Download.find_similar: simplify error handling.
...
Raise errors immediately to avoid deeply nested if-else statements.
2018-04-07 18:03:10 -05:00
evazion
d8142a6c21
iqdb_queries_controller.rb: simplify show / check actions.
...
* Combine create_by_post + create_by_url. Rename to find_similar.
* Move iqdb enabled check to find_similar.
2018-04-07 18:03:01 -05:00
evazion
1b14545d0d
Fix #3603 : Unable to view images on Hijiribe/Sonohara when Danbooru domain is blocked.
2018-04-06 21:25:14 -05:00
evazion
01eda51020
tests: add webm/mp4 upload tests.
2018-04-06 19:56:17 -05:00
evazion
e7eee185f7
Fix #3607 : Webm / mp4 uploads broken.
2018-04-06 19:55:26 -05:00
evazion
a03270dbf1
Add about:userscripts to site map.
2018-04-05 16:52:46 -05:00
evazion
9b62b78183
Fix #3601 : Broken URLs in /posts.atom feed.
2018-04-05 16:46:23 -05:00
evazion
a432980f85
Fix "wrong number of arguments (given 3, expected 2)" in Post#file_url.
2018-04-05 15:33:47 -05:00
evazion
8e457c7331
Disable user:<name> blacklists (temp fix for #3596 ).
2018-04-05 14:38:44 -05:00
evazion
084fcd91ed
Only generate tagged filenames for URLs on post show pages ( #3597 ).
...
Don't generate tagged filenames for urls in the data attributes on
thumbnails, or in the /posts.json api.
2018-04-05 14:20:37 -05:00
evazion
14977397fb
Fix "ArgumentError - wrong number of arguments" during tagging.
2018-04-05 13:27:37 -05:00
evazion
c19a1b83a9
Fix #3573 : commentary: add source citation when fetching cross-site.
2018-03-31 17:20:20 -05:00
evazion
f15f2cbb81
Fix #3581 : Mod Dashboard: exclude or mark deleted comments.
2018-03-31 13:14:41 -05:00
evazion
8fd9d374ca
Fix #3583 : Copying notes should copy tags to destination.
2018-03-31 12:58:56 -05:00
evazion
8e7ad9eb97
Post#copy_notes_to: wrap in transaction.
2018-03-31 11:44:49 -05:00
evazion
04ecca6a06
Fix #3591 : DeviantArt commentaries: strip embedded image/text thumbs.
2018-03-31 11:27:14 -05:00
evazion
75cc1421a3
Fix #3590 : Superfluous space added on certain autocompletions.
...
Bug: searching for /wiki_pages?search[title]=touhou%20 didn't find the
'touhou' wiki. The space wasn't stripped when the title was normalized.
2018-03-30 22:24:34 -05:00
evazion
80219a0ccf
commentaries: replace <img> tags with dtext links ( #3586 )
...
Replace <img> tags with dtext links, unless the <img> tag is already
inside an <a> tag.
Also strip Unicode spaces from DeviantArt commentaries.
2018-03-30 21:42:51 -05:00
evazion
b185efbb5f
tumblr commentaries: include asker's name in ask posts ( #3586 ).
2018-03-30 21:42:51 -05:00
evazion
74d46708c7
INSTALL.debian: bump ruby version to 2.5.1 ( 4ff5af626).
2018-03-30 18:58:18 -05:00
evazion
fd055a894b
DanbooruImageResizer: workaround libvips-8.4 incompatibility.
2018-03-29 21:41:22 -05:00
evazion
c0c41dd369
uploads: add limits on max image dimensions.
2018-03-29 19:24:41 -05:00
evazion
be0c2cfcfa
posts: fix incorrect large_file_url for animated_gifs.
...
For animated_gif posts, large_file_url was returning
"/data/sample-$md5.jpg" instead of "/data/$md5.gif".
2018-03-28 19:17:15 -05:00
evazion
dc9b7e5bda
Fix #3582 : Switch from ImageMagick to libvips
2018-03-28 17:15:57 -05:00
evazion
619a2055fe
tests: add storage manager tests.
2018-03-20 19:49:58 -05:00
evazion
d089be9f8a
tests: fix upload tests.
2018-03-20 19:49:58 -05:00
evazion
41a4ff15cd
posts: remove unused file path / url methods.
...
* Remove file_path_for, cropped_file_url (dead code)
* Remove complete_preview_file_url (preview_file_url now returns absolute links)
* Remove `file_name` (only used for Download link in sidebar)
2018-03-20 19:49:55 -05:00
evazion
b7f7187f63
posts: use storage manager to delete files.
2018-03-20 19:49:06 -05:00
evazion
f0bf1bc66e
posts: use storage manager to backup files.
...
* Perform backups synchronously inside `distribute_files` instead of
asynchronously in `queue_backup`. Asynchronous backups assumed that
files are stored on the local filesystem, which isn't true in general.
* Remove obsolete backup service classes.
2018-03-20 19:49:06 -05:00
evazion
6d0d1a3ce9
posts: use storage manager to build file urls.
2018-03-20 19:49:06 -05:00
evazion
c76463f34d
uploads: use storage manager to distribute files.
...
Refactors the upload process to pass around temp files, rather than
passing around file paths and directly writing output to the local
filesystem. This way we can pass the storage manager the preview /
sample / original temp files, so it can deal with storage itself.
* Change Download::File#download! to return a temp file.
* Change DanbooruImageResizer and PixivUgoiraConverter to accept/return
temp files instead of file paths.
* Change Upload#generate_resizes to return temp files for previews and samples.
* Change Upload#generate_resizes to generate ugoira .webm samples
synchronously instead of asynchronously.
2018-03-20 19:49:06 -05:00