Commit Graph

5053 Commits

Author SHA1 Message Date
Albert Yi
ee4ebce4d7 support pool version archive 2016-12-21 11:43:46 -08:00
Albert Yi
3c038f76f9 Merge pull request #2791 from evazion/fix-safebooru-ugoiras
Fix broken ugoira player on safebooru.
2016-12-20 17:57:39 -08:00
evazion
d79f1aac96 Move stupidtable.js into application.js.
Fixes this javascript error:

    Uncaught TypeError: $(...).stupidtable is not a function

on these pages:

* http://safebooru.donmai.us/reports/user_promotions
* http://safebooru.donmai.us/reports/contributors
* http://safebooru.donmai.us/reports/janitor_trials

...due to stupidtable.js not loading.
2016-12-20 02:31:05 -06:00
evazion
780fe07976 Move ugoira_player.js into application.js.
Fixes an issue with the ugoira player not working on Safebooru due to
this error:

    Asset filtered out and will not be served: add
    `Rails.application.config.assets.precompile += %w( ugoira_player.js)`
    to `config/initializers/assets.rb` and restart your server
2016-12-20 02:26:13 -06:00
Albert Yi
aa5e65129b Merge pull request #2787 from evazion/fix-video_with_sound-blacklists
Prevent video_with_sound posts from autoplaying when blacklisted.
2016-12-19 13:10:23 -08:00
Albert Yi
66384d78a7 Merge pull request #2789 from evazion/fix-double-uploads
Prevent double uploading when hitting enter key in tag edit box more than once.
2016-12-19 13:09:59 -08:00
Albert Yi
611e5cf5e0 Merge pull request #2788 from evazion/fix-secure-api-keys
Fix #2785: Allow changing API key; require password to view or change key.
2016-12-19 13:09:29 -08:00
Albert Yi
f3c8708c82 Merge pull request #2790 from evazion/fix-upload-resizer
Fix upload preview image displayed at full size (fixes #1375, #2471)
2016-12-19 13:08:04 -08:00
evazion
78ca92c981 Fix upload image resizer. (fixes #1375, #2471)
Polling the image height isn't reliable. Wait for the image to be fully
downloaded before resizing it instead.
2016-12-18 20:42:24 -06:00
evazion
b7246d335f Prevent double uploading when mashing enter key in tag edit box. 2016-12-18 18:45:02 -06:00
evazion
a92120e873 Fix #2785: Allow changing API key; require password to view or change key. 2016-12-18 06:30:48 -06:00
evazion
5d0e950cdb Prevent video_with_sound posts from autoplaying when blacklisted. 2016-12-17 18:33:03 -06:00
Albert Yi
3e285ea4ce update dtext gem 2016-12-12 17:08:56 -08:00
Albert Yi
aef31d8d9b enable ragel parser for comments, add additional sql diagnostic queries 2016-12-09 14:59:33 -08:00
Albert Yi
2af622e7a7 add ban to post mode menu 2016-12-09 11:56:25 -08:00
Albert Yi
dfb7a000a5 assign approver on failed bulk update requests to fix nil error 2016-12-08 11:49:38 -08:00
Albert Yi
9a75a05c25 move newrelic + deploytags gem to production env, rename cap tasks to .rake 2016-12-06 15:47:21 -08:00
Albert Yi
4eb0a64135 fix exploit for viewing private dmails 2016-12-06 14:34:46 -08:00
Albert Yi
deb62e0cdb smarter updates on saved searches on tag batch changes #2674 2016-12-05 17:22:07 -08:00
Albert Yi
bfa1ac63a4 fixes #2677: secure way of sharing dmails 2016-12-05 16:28:05 -08:00
Albert Yi
b68ded2796 fix typo with new relic gem include 2016-12-05 16:02:33 -08:00
Albert Yi
88eac46561 move newrelic gem to dev 2016-12-05 16:01:29 -08:00
Albert Yi
88baf36a8c fix #2783: Unhide /artist_versions for members 2016-12-05 15:55:02 -08:00
Albert Yi
8266b31cea add cap hook for tagging deployments in git 2016-12-05 15:02:38 -08:00
Albert Yi
eddf2e59f0 change formatting for modactions on alias/implication update + add mod action for tag batch changes 2016-12-05 14:46:02 -08:00
Albert Yi
2605da1037 lower requirements for janitor trial 2016-12-05 12:09:50 -08:00
Albert Yi
b0f2b1e8dd Merge pull request #2782 from evazion/fix-2779
Fix #2779: Erroneous pixiv_id parsed for novel/background/profile images
2016-12-05 11:44:38 -08:00
Albert Yi
bd9939a50b some additional documentation about rewrite strategies 2016-12-05 11:43:18 -08:00
Albert Yi
48e7fab28e Merge pull request #2764 from evazion/fix-raw-note-bodies
Use raw note body instead of sanitized body for note edit box.
2016-12-05 11:39:50 -08:00
Albert Yi
8efe2dc1a5 Merge pull request #2781 from evazion/fix-tests
Fix failures in commenting tests.
2016-12-05 11:39:39 -08:00
evazion
838d6f6eea Fix #2460: Uploading pixiv user's background image throws error.
Fix exception when uploading these types of URLs:

* http://img12.pixiv.net/profile/rapattu/119950.jpg
* http://i2.pixiv.net/img130/profile/minono_aki/8733472.jpg
* http://i2.pixiv.net/img20/img/a-park/novel/3607898.jpg
* http://i1.pixiv.net/novel-cover-original/img/2016/11/03/20/10/58/7436075_f75af69f3eacd1656d3733c72aa959cf.jpg
* http://i1.pixiv.net/background/img/2016/05/17/12/05/48/2074388_d4ac52034f7ca0af3e083d59fde7e97f.jpg

Skip rewriting sources that don't have illust IDs to avoid this
exception. Also fix `tags` so that it doesn't blow up when fetching
source data for these types of sources.
2016-12-04 02:04:44 -06:00
evazion
e7bc3048ed Test downloading pixiv profile/background/novel images. 2016-12-04 02:04:44 -06:00
evazion
5302b804f1 Fix #2779: Erroneous pixiv_id parsed for novel/background/profile images 2016-12-04 02:04:44 -06:00
evazion
96a38f8d1b Test pixiv id parsing for novel/background/profile images. 2016-12-04 02:04:44 -06:00
Albert Yi
096ce49f80 Merge pull request #2780 from evazion/fix-remove-coinbase
Remove coinbase from Gemfile.lock.
2016-12-03 18:42:10 -08:00
evazion
db9cb20faf Remove coinbase from Gemfile.lock. 2016-12-03 20:22:53 -06:00
evazion
f8d5add0cc Silence git messages to stdout during app boot.
Caused this to be printed every time tests were run:

    git is /usr/bin/git
    /home/user/src/danbooru
2016-12-03 20:09:58 -06:00
evazion
01afc46f74 Fix failures in commenting tests.
Restricting users from upvoting their own comments broke some tests.
Switch these tests to downvoting instead.
2016-12-03 20:06:50 -06:00
Albert Yi
4f2988c809 ignore config/newrelic.yml 2016-12-02 15:09:06 -08:00
Albert Yi
9e164cafae add cap task for updating newrelic on deployments 2016-12-02 15:06:36 -08:00
Albert Yi
1314239326 remove coinbase references 2016-12-02 13:52:39 -08:00
Albert Yi
6e27d06eee link to performance reports in site map 2016-12-02 13:31:05 -08:00
Albert Yi
d7c4c1f714 fix references to https for listbooru 2016-12-02 13:28:13 -08:00
Albert Yi
7aab50f726 remove old iqdb code 2016-12-02 13:21:56 -08:00
Albert Yi
8e5331d234 fix for iqdb queries 2016-12-02 13:11:10 -08:00
Albert Yi
a358247c1c fix for iqdb download 2016-12-02 12:19:42 -08:00
Albert Yi
af42f52d4a fix references to report_server 2016-12-01 12:34:57 -08:00
Albert Yi
f46aaad39d additional fixes to support iqdbs 2016-12-01 12:22:34 -08:00
Albert Yi
73ff94e920 integrate iqdbs 2016-11-30 16:38:00 -08:00
Albert Yi
ebedea99c1 fix urls for iqdb service 2016-11-30 15:20:26 -08:00