Commit Graph

8 Commits (76f3d5d16be2fb97d2252909589510165ec05e12)

Author SHA1 Message Date
ysksn 64cc129225 Add tests for MediaAttachment ()
- `#local?`
- `#needs_redownload?`
- `#to_param`
unarist 4f337c020a Fix Cocaine::ExitStatusError when upload small non-animated GIF ()
Looks like copied tempfile need to be flushed before further processing. This issue won't happen if the uploaded file has enough file size.
Eugen Rochko 887cd94e96 Increase attachment descriptions to 420 characters ()
Blaze it
Eugen Rochko 4ec1771165 Add ability to specify alternative text for media attachments ()
* Fix  - Add ability to specify alternative text for media attachments

- POST /api/v1/media accepts `description` straight away
- PUT /api/v1/media/:id to update `description` (only for unattached ones)
- Serialized as `name` of Document object in ActivityPub
- Uploads form adjusted for better performance and description input

* Add tests

* Change undo button blend mode to difference
Francis Chong 193dddb433 Add media dimensions ()
* Fixes 

- add migration AddMediaAttachmentMeta, which add meta field to media_attachments
- before saving attachment, set file meta if needed
- add meta in api

* add spec

* align the “size” format for image and video

* fix code climate

* fixes media_attachment_spec.rb
Eugen 2e4afccd9d Fix - Fix gif uploads ()
* Fix  - Fix gif uploads
Add specs for media attachment gifv conversion

* Add ffmpeg to travis

* Make travis install ffmpeg, not libav

* Switch travis to trusty
Eugen Rochko 3cc47beb6e Refactored generation of unique tags, URIs and object URLs into own classes,
as well as formatting of content
Eugen Rochko ae1fac0062 Add API to upload media attachments