evazion
e7eee185f7
Fix #3607 : Webm / mp4 uploads broken.
2018-04-06 19:55:26 -05:00
evazion
c0c41dd369
uploads: add limits on max image dimensions.
2018-03-29 19:24:41 -05:00
evazion
dc9b7e5bda
Fix #3582 : Switch from ImageMagick to libvips
2018-03-28 17:15:57 -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
evazion
60dcfbfbdd
uploads: autotag animated_gif/png during upload.
...
Move animated_gif / animated_png autotagging to take place during
uploading, instead of during tag editing. We can't generally assume the
file will be present on the local filesystem after uploading.
2018-03-20 19:49:06 -05:00
evazion
2286ccfca8
uploads: clean up process_upload.
...
* Remove `initialize_status` (status already defaults to pending in database)
* Remove `has_dimensions?` (always returns true)
* Remove `async_conversion?` (dead code)
* Remove `validate_file_exists` (unneeded checks)
* Simplify `calculate_dimensions`
* Merge `file_header_to_content_type` with `content_type_to_file_ext` (content type isn't used elsewhere)
2018-03-20 19:49:06 -05:00
BrokenEagle
d829ab3a00
Move all order logic to models
...
- Have a default order for each model
-- The overall default is ID DESC
- Allow for custom orderings
-- When comma-separated IDs are used
2018-01-29 11:42:53 -08:00
evazion
efeaad25ca
Move lib/danbooru, lib/danbooru_image_resizer to app/logical.
2017-12-18 12:07:52 -06:00
evazion
0ca726802f
Fix #3430 : Accept the search[id] param in all controllers.
...
* Allow every controller to take the `search[id]` param.
* Parse the `search[id]` param the same way that the `id:<N>` metatag is
parsed. So `search[id]=1,2,3`, `search[id]=<42`, `search[id]=1..10`, for
example, are all accepted.
2017-12-17 17:36:52 -06:00
evazion
07a4bdcb21
posts: display validation warnings in flash notice.
2017-11-25 17:03:32 -06:00
Lucas Nicodemus
3a519c2eee
Skip validation of video duration if user is admin
2017-10-22 13:49:59 -06:00
r888888888
debf265ba3
disable cropper notifications
2017-09-14 14:04:54 -07:00
evazion
fd9dc6f647
expunge: decrement upload and note/post update counts ( fix #2062 ).
2017-09-13 13:29:35 -07:00
r888888888
75f87bcc8e
potential fix for #3290
2017-09-13 13:00:20 -07:00
r888888888
4fb55657c0
refactor cropped images into explore/posts/intro
2017-09-12 13:03:59 -07:00
r888888888
31a3baf2b9
enable cropper
2017-09-12 12:09:07 -07:00
r888888888
ac76398685
disable cropper notification on upload
2017-09-08 17:28:30 -07:00
r888888888
60ea6d04f2
fix hostname
2017-09-08 17:15:47 -07:00
r888888888
ff6a64f0fc
notify cropper service on upload
2017-09-08 17:11:51 -07:00
evazion
11ef460db0
post replacements: allow replacing post with identical file.
2017-07-24 23:05:34 -05:00
evazion
c3ac4f3329
Fix #3197 - Post Replacement comment: use Replacement URL instead of Final Source
...
Record the URL of the image that was actually downloaded as the replacement URL.
2017-07-02 21:00:26 -05:00
evazion
ef76ec0385
uploads: fix upload failure when given nil source ( fix #3168 ).
2017-06-17 08:31:44 -05:00
evazion
c1834ab8dd
Inherit models from ApplicationRecord instead of ActiveRecord::Base.
2017-06-16 13:28:31 -05:00
Albert Yi
dc02dcf0e0
Merge pull request #3015 from evazion/feat-replace-images
...
Fix #2949 : Sample image replacement ability
2017-05-12 17:11:29 -07:00
evazion
b2f62482a1
Remove artist commentary handling from download rewrite strategies.
2017-05-10 18:01:51 -05:00
evazion
b4a38c68b4
upload.rb: separate out post creation from upload processing.
2017-05-02 20:41:18 -05:00
evazion
5f9c423542
upload.rb: detect mp4s with an ftyp of avc1.
2017-04-20 23:08:34 -05:00
r888888888
237c997ae1
remove usage of increment! #2835
2017-01-17 15:46:21 -08:00
Albert Yi
79842f7a3b
restrict min level constraints for forum topics to mod+admin and restrict options based on current user's level. check privileges for visiblity in forum posts and topics. deprecate serializable_hash (undocumented, internal) for as_json, refactor to use hidden_attributes and method_attributes #2658
2016-10-25 15:05:55 -07:00
r888888888
fc7afd44ea
refactor source pixiv test
...
refactor pixiv download tests
refactor upload test
refactor nico seiga test
refactor twitter tests
2016-09-28 11:25:29 -07:00
r888888888
243368a758
fixes #2569
2016-01-18 15:58:00 -08:00
r888888888
6480864718
fixes #2469
2015-10-15 15:24:24 -07:00
Toks
b12b637568
Strip source whitespace before upload
...
This was already done for post edits but not on upload.
2015-10-04 16:57:40 -04:00
r888888888
cbe627b01a
fixes #2494 : Twitter bookmarklet: support uploading video
2015-08-27 14:56:25 -07:00
r888888888
ef59ae8886
enable audio for videos #2499
2015-08-26 13:54:34 -07:00
r888888888
92c68db37a
addresses #2499 : Support uploading mp4 video
2015-08-25 17:02:57 -07:00
Toks
462e1ed324
Implement #2395 for nijie twitter and tumblr
2015-06-13 11:26:47 -04:00
Toks
d1bf8eb03d
Fix commentary being created even if user says not to
2015-06-03 21:37:41 -04:00
r888888888
2ddc93723c
fixes #2327
2015-06-02 19:20:09 -07:00
r888888888
c92c32ecda
fix tests
2015-02-15 12:23:53 -08:00
Toks
75bdc3fc63
fix regex for ruby 2
2015-01-27 17:37:04 -05:00
r888888888
53844af8dc
Merge branch 'ruby-2.1'
...
This reverts commit 616aef4394 .
2014-12-10 16:23:58 -08:00
r888888888
177ef0ebcc
fixes #2307
2014-11-19 17:17:26 -08:00
r888888888
16f9a61d63
fixes #2299
2014-10-29 15:14:17 -07:00
Toks
2698c4d6d8
Fix server field not getting set for uploads
2014-10-29 12:29:10 -04:00
evazion
ffc7a7bb39
Save normalized source with post instead of original source.
...
Fixes #2294 .
2014-10-28 22:57:00 -05:00
r888888888
94fd03f5d0
since ugoira converter always uses the md5 file path as the base, no longer have to delay unlinking the tempfile
2014-10-28 11:20:49 -07:00
r888888888
981e6dab67
no longer require presence of ugoira tag to process ugoira posts
2014-10-23 16:34:31 -07:00
r888888888
69564c4bff
fix async processing for ugoira
2014-10-22 22:48:20 -07:00
r888888888
e8f973601c
fixes for ugoira convert
2014-10-22 22:15:05 -07:00