diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2017-05-08 23:49:53 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-08 16:49:53 +0200 |
commit | 459bbfa4b21c20809a142c41c389b7a5edd28bd8 (patch) | |
tree | a6ae031077452d36fd743873da888054e8f9034b /app/views/home | |
parent | 7140def5c9e49535d8ea13c8061a55588a348fda (diff) |
Prevent selection of unacceptable Content-Type files (#2910)
* Prevent selection of unacceptable Content-Type files * replace hard code * media_attachments accept content-types in initial state
Diffstat (limited to 'app/views/home')
-rw-r--r-- | app/views/home/initial_state.json.rabl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/home/initial_state.json.rabl b/app/views/home/initial_state.json.rabl index b599b5cf0..ac0bee2e2 100644 --- a/app/views/home/initial_state.json.rabl +++ b/app/views/home/initial_state.json.rabl @@ -27,4 +27,10 @@ node(:accounts) do store end +node(:media_attachments) do + { + accept_content_types: MediaAttachment::IMAGE_MIME_TYPES + MediaAttachment::VIDEO_MIME_TYPES + } +end + node(:settings) { @web_settings } |