summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-01-14 12:15:00 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-01-14 12:15:00 +0900
commite9cfa3dafc30cefccd89be38c876b16699477f37 (patch)
tree63e6656469f172f25859f9fbd29c48cc67d3fd5a
parentRefactor (diff)
downloadsharkey-e9cfa3dafc30cefccd89be38c876b16699477f37.tar.gz
sharkey-e9cfa3dafc30cefccd89be38c876b16699477f37.tar.bz2
sharkey-e9cfa3dafc30cefccd89be38c876b16699477f37.zip
投稿の文字数制限を緩和
-rw-r--r--src/api/endpoints/posts/create.js2
-rw-r--r--src/web/app/desktop/tags/post-form.tag2
-rw-r--r--src/web/app/mobile/tags/post-form.tag2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/api/endpoints/posts/create.js b/src/api/endpoints/posts/create.js
index cdcbf4f966..694e6fc824 100644
--- a/src/api/endpoints/posts/create.js
+++ b/src/api/endpoints/posts/create.js
@@ -17,7 +17,7 @@ import event from '../../event';
/**
* 最大文字数
*/
-const maxTextLength = 300;
+const maxTextLength = 500;
/**
* 添付できるファイルの数
diff --git a/src/web/app/desktop/tags/post-form.tag b/src/web/app/desktop/tags/post-form.tag
index 9683859477..8ddc9e0b00 100644
--- a/src/web/app/desktop/tags/post-form.tag
+++ b/src/web/app/desktop/tags/post-form.tag
@@ -12,7 +12,7 @@
<mk-uploader ref="uploader"></mk-uploader>
<button ref="upload" title="PCからファイルを添付" onclick={ selectFile }><i class="fa fa-upload"></i></button>
<button ref="drive" title="ドライブからファイルを添付" onclick={ selectFileFromDrive }><i class="fa fa-cloud"></i></button>
- <p class="text-count { over: refs.text.value.length &gt; 300 }">のこり{ 300 - refs.text.value.length }文字</p>
+ <p class="text-count { over: refs.text.value.length &gt; 500 }">のこり{ 500 - refs.text.value.length }文字</p>
<button class={ wait: wait } ref="submit" disabled={ wait || (refs.text.value.length == 0 && files.length == 0) } onclick={ post }>{ wait ? '投稿中' : opts.reply ? '返信' : '投稿' }
<mk-ellipsis if={ wait }></mk-ellipsis>
</button>
diff --git a/src/web/app/mobile/tags/post-form.tag b/src/web/app/mobile/tags/post-form.tag
index e2d0c96024..28e508ebc5 100644
--- a/src/web/app/mobile/tags/post-form.tag
+++ b/src/web/app/mobile/tags/post-form.tag
@@ -2,7 +2,7 @@
<header>
<div>
<button class="cancel" onclick={ cancel }><i class="fa fa-times"></i></button>
- <div><span class="text-count { over: refs.text.value.length &gt; 300 }">{ 300 - refs.text.value.length }</span>
+ <div><span class="text-count { over: refs.text.value.length &gt; 500 }">{ 500 - refs.text.value.length }</span>
<button class="submit" onclick={ post }>投稿</button>
</div>
</div>