Commit Graph

6294 Commits

Author SHA1 Message Date
Albert Yi
1548efbbae Merge pull request #3128 from evazion/fix-inline-blacklists
Fix #3121: No Blacklist Box on the various controllers
2017-06-08 14:05:56 -07:00
Albert Yi
ec27a4aa96 Merge pull request #3120 from evazion/fix-gallery-warning
Fix gallery warning for non-Pixiv galleries.
2017-06-08 14:05:13 -07:00
evazion
ec9a3e5c17 posts: add partial indexes on is_pending, is_flagged. 2017-06-08 00:00:38 -05:00
evazion
2929857682 blacklists: fix inline blacklist css to work on any page. 2017-06-07 23:31:34 -05:00
evazion
5c9b5cd21e blacklists: add missing blacklist controls on several pages (fix #3121). 2017-06-07 23:30:35 -05:00
evazion
23fb6b8d15 /users/$id.json: fix exception when pool archives is disabled (fix #3123). 2017-06-07 22:54:16 -05:00
evazion
58bd0670b7 Post#pools: avoid query when post has no pools. 2017-06-07 22:45:28 -05:00
evazion
151b276fb9 modqueue: display pools for each post (fix #3125). 2017-06-07 22:45:01 -05:00
evazion
12fffc3760 modqueue: factor out modqueue posts into partial. 2017-06-07 22:44:46 -05:00
Type-kun
b3cd93a75c Fixes #3122 2017-06-07 21:19:53 +05:00
evazion
39bd141667 artstation: fix fetch source data for image urls.
Fixes 'Fetch source data' when uploading an image url and the referer
url is available:

* https://danbooru.donmai.us/uploads/new?url=https://cdna.artstation.com/p/assets/images/images/006/029/978/large/amama-l-z.jpg&ref=https://www.artstation.com/artwork/4BWW2
2017-06-07 10:20:18 -05:00
evazion
edd02c4019 artstation: normalize to www.artstation.com/artwork/$id for sidebar. 2017-06-07 10:20:18 -05:00
evazion
b1171306a1 artstation: include only images in image_urls. 2017-06-07 10:20:18 -05:00
evazion
215569fbe0 artstation: fix source to page url after download. 2017-06-07 10:20:17 -05:00
evazion
a68ff3c347 artstation: accept www.artstation.com/artwork/foo-bar-baz style urls. 2017-06-07 10:20:17 -05:00
evazion
fed23c0baa fetch source data: fix gallery warning for non-pixiv galleries. 2017-06-06 23:03:07 -05:00
Albert Yi
bb0be36f05 Merge pull request #3118 from evazion/fix-nicoseiga-artcomm
Fix #3117: Nicoseiga handler grabbing wrong commentary source
2017-06-06 12:03:10 -07:00
evazion
047fb68f45 Fix #3117: Nicoseiga handler grabbing wrong commentary source
* `summary` is the wrong field. It's the list of comments left by users,
  not the artist's commentary.

* For some reason `doc.response.image.description` returns nil even
  though the description element exists. Switch to `Hash.from_xml` to
  avoid this.
2017-06-06 13:44:43 -05:00
r888888888
268d0450bc additional fixed for amazonbackup helper methods 2017-06-05 13:38:10 -07:00
r888888888
2878d1533d set acl for amazonbackup helper methods 2017-06-05 13:28:39 -07:00
r888888888
e16320a376 fix paths of large sized images on s3 backup 2017-06-05 13:07:51 -07:00
Albert Yi
7f062eb514 Merge pull request #3116 from evazion/fix-artstation-project-urls
Fix #3108: support https://$artist.artstation.com/projects/$id urls
2017-06-05 12:45:44 -07:00
evazion
b3e533f3ff Add download rewrite for https://$artist.artstation.com/projects/$id. 2017-06-05 14:03:51 -05:00
Albert Yi
c03d625618 Merge pull request #3113 from evazion/fix-forum-stickies
Forum topics: don't list sticky topics first in json/atom responses.
2017-06-05 12:03:50 -07:00
evazion
71950597e8 Add source tests for https://$artist.artstation.com/projects/$id. 2017-06-05 14:03:50 -05:00
evazion
666aaef69c Add source support for https://$artist.artstation.com/projects/$id. 2017-06-05 14:03:38 -05:00
Albert Yi
eea5fbaab3 Merge pull request #3112 from evazion/fix-edit-mode
Fix height of tag edit box in edit mode.
2017-06-05 12:03:37 -07:00
Albert Yi
494ad99aac Merge pull request #3111 from evazion/fix-3099
Fix #3099: NilClass error for approval API request
2017-06-05 12:03:18 -07:00
Albert Yi
339626e8e1 Merge pull request #3110 from evazion/fix-3109
Fix #3109: Fix autocomplete on intro page
2017-06-05 12:02:56 -07:00
Albert Yi
b750111196 Merge pull request #3107 from BrokenEagle/feat-resize-javascript
Resize images for mobile layout
2017-06-05 11:56:27 -07:00
Albert Yi
daeb2ad3b1 Merge pull request #3105 from evazion/fix-versions-diffs
Fix missing spaces between tags on /post_versions
2017-06-05 11:45:50 -07:00
Albert Yi
1211f1f0fb Merge pull request #3104 from evazion/feat-wildcard-escape
Allow backslash escaping wildcards in wildcard searches.
2017-06-05 11:45:35 -07:00
evazion
1d62ea3220 /forum_topics: don't list stickies first in json/atom responses. 2017-06-04 16:14:55 -05:00
evazion
9b31e16627 mode menu: fix height of tag edit box in edit mode.
Bug: in edit mode, each time you click a thumbnail the height of the tag
edit box increases by 4px.

This is due to `scrollHeight` including vertical padding. Fix it to a)
ignore this padding, and b) ensure the min height is at least 80px.
2017-06-04 14:02:46 -05:00
evazion
fdf8e7d5d7 Fix mode menu 'approve' option.
* Fix routing error in respond_with (didn't use /moderator namespace).

* Fix /moderator/posts/approvals.json response to return full
  PostApproval object, not just a success/failure message.

* Simplify the javascript a bit (use $.post instead of $.ajax).
2017-06-04 12:14:35 -05:00
evazion
4fe97a8218 Hide the flags and appeals notices after approving post. 2017-06-04 10:07:42 -05:00
evazion
3880fbe13e /posts/$id: fix shift+O to approve shortcut.
`Danbooru.Post.approve` is used for approving posts via the mode menu.
It doesn't hide all the notices or the approve/disapprove/flag buttons.
Click the link instead to hide those things.

Click the #quick-mod-approve link instead of #approve because #approve
prompts for confirmation.
2017-06-04 10:07:26 -05:00
evazion
6699e9d66f Fix autocomplete on intro page (fix #3109). 2017-06-04 08:43:51 -05:00
BrokenEagle
6f593de46d Resize images for mobile layout 2017-06-03 12:52:27 -07:00
evazion
7d8150ae2d /post_versions, /artist_versions: fix missing spaces between tags/names. 2017-05-31 19:48:42 -05:00
r888888888
09ed1ea720 another bug fix for nico seiga artist url normalization 2017-05-31 15:50:40 -07:00
r888888888
6a706a6b90 fix normalization for nico seiga urls 2017-05-31 15:45:28 -07:00
evazion
cebf29f83e Allow escaping wildcards (\*) in wildcard searches. 2017-05-31 16:15:18 -05:00
r888888888
69fd6e6ca1 fixes #3102 2017-05-31 10:58:47 -07:00
r888888888
bffa1f3dc3 fix unit tests 2017-05-30 17:37:42 -07:00
r888888888
216ca06fee fixes #3100 2017-05-30 15:38:01 -07:00
r888888888
1478eff561 fixes #3098 2017-05-30 12:36:07 -07:00
r888888888
6eb5a4c017 fixes #3096 2017-05-30 12:13:08 -07:00
r888888888
3a49b3c54b include normalized artist url in artist json 2017-05-30 12:01:18 -07:00
Albert Yi
7a3431caaa Merge pull request #3097 from evazion/fix-mass-update
Mass updates: fix exception when moving saved searches.
2017-05-30 11:41:16 -07:00