Commit Graph

5068 Commits

Author SHA1 Message Date
Albert Yi
0293d1d01c Update comment.rb
allow Comment#for_creator to handle null user id case
2016-12-27 11:32:41 -08:00
evazion
390524c7f5 Remove obsolete IE8 opacity hacks; remove unused transparency mixin. 2016-12-26 23:52:27 -06:00
evazion
1b05d5068a Simplify Comment.for_creator_name. 2016-12-26 23:52:27 -06:00
evazion
9347f27059 /comments.json: add id param; allow id and post_id to take lists of ids. 2016-12-26 23:52:27 -06:00
evazion
69c50290a8 Include updater_name in /comments/1.json. 2016-12-26 23:52:27 -06:00
evazion
c165b38a91 Prevent anon users from attempting to undelete/unvote comments.
The :undelete and :unvote actions weren't covered.
2016-12-26 23:52:27 -06:00
evazion
7c838f8525 Delete unused /comments/index_all route and unused _threshold.html.erb template. 2016-12-26 23:52:27 -06:00
evazion
85011c9192 Fix "'archive_development' database is not configured." exception. 2016-12-26 23:52:27 -06:00
r888888888
2584646017 add additional formatting for delayed job listing 2016-12-24 18:00:40 -08:00
Albert Yi
1ed5e0a087 Merge pull request #2796 from evazion/fix-ss-check-availability
Fix #2795: "check_availability" bug with saved searches.
2016-12-23 11:20:17 -08:00
Albert Yi
5ba7a428c1 Merge pull request #2797 from evazion/feat-appeal-notice
Fix #2792: pull appeal text from wiki page.
2016-12-23 11:19:35 -08:00
evazion
f0591f3f5b Fix #2792: pull appeal text from wiki page. 2016-12-22 21:53:10 -06:00
evazion
00ddd2f5d4 Fix #2795: "check_availability" bug with saved searches. 2016-12-22 21:44:35 -06:00
Albert Yi
5a1ac41450 eliminate transaction log items table 2016-12-21 15:00:59 -08:00
Albert Yi
62956be384 hide saved search functionality if not enabled 2016-12-21 14:53:39 -08:00
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