diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-04 09:39:25 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-04 09:39:25 +0900 |
| commit | d7c94de07e17e31513780ceabf824a3d0760ff80 (patch) | |
| tree | 890e64439127e0f118a6a0e041c7f14ee2f9b891 /src/web/app/mobile/views/components/post-form.vue | |
| parent | :art: (diff) | |
| download | sharkey-d7c94de07e17e31513780ceabf824a3d0760ff80.tar.gz sharkey-d7c94de07e17e31513780ceabf824a3d0760ff80.tar.bz2 sharkey-d7c94de07e17e31513780ceabf824a3d0760ff80.zip | |
#172
Diffstat (limited to 'src/web/app/mobile/views/components/post-form.vue')
| -rw-r--r-- | src/web/app/mobile/views/components/post-form.vue | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/web/app/mobile/views/components/post-form.vue b/src/web/app/mobile/views/components/post-form.vue index 63b75b92f0..009012b0b6 100644 --- a/src/web/app/mobile/views/components/post-form.vue +++ b/src/web/app/mobile/views/components/post-form.vue @@ -91,11 +91,13 @@ export default Vue.extend({ }, post() { this.posting = true; + const viaMobile = (this as any).os.i.client_settings.disableViaMobile !== true; (this as any).api('posts/create', { text: this.text == '' ? undefined : this.text, media_ids: this.files.length > 0 ? this.files.map(f => f.id) : undefined, reply_id: this.reply ? this.reply.id : undefined, - poll: this.poll ? (this.$refs.poll as any).get() : undefined + poll: this.poll ? (this.$refs.poll as any).get() : undefined, + via_mobile: viaMobile }).then(data => { this.$emit('post'); this.$destroy(); |