diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-05 09:03:54 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-05 09:03:54 +0900 |
| commit | 4ca31fd2cf393f51300fa25b8555458cd9ecebf2 (patch) | |
| tree | fd71316251883077858d882954e3c18d86e3c019 /src/web/app/desktop | |
| parent | v3968 (diff) | |
| download | misskey-4ca31fd2cf393f51300fa25b8555458cd9ecebf2.tar.gz misskey-4ca31fd2cf393f51300fa25b8555458cd9ecebf2.tar.bz2 misskey-4ca31fd2cf393f51300fa25b8555458cd9ecebf2.zip | |
Fix bug
Diffstat (limited to 'src/web/app/desktop')
| -rw-r--r-- | src/web/app/desktop/views/components/post-form.vue | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/web/app/desktop/views/components/post-form.vue b/src/web/app/desktop/views/components/post-form.vue index 6e334e7ca8..22ed52b399 100644 --- a/src/web/app/desktop/views/components/post-form.vue +++ b/src/web/app/desktop/views/components/post-form.vue @@ -219,7 +219,15 @@ export default Vue.extend({ reply_id: this.reply ? this.reply.id : undefined, repost_id: this.repost ? this.repost.id : undefined, poll: this.poll ? (this.$refs.poll as any).get() : undefined, - geo: this.geo, + geo: this.geo ? { + latitude: this.geo.latitude, + longitude: this.geo.longitude, + altitude: this.geo.altitude, + accuracy: this.geo.accuracy, + altitudeAccuracy: this.geo.altitudeAccuracy, + heading: isNaN(this.geo.heading) ? null : this.geo.heading, + speed: this.geo.speed, + } : null }).then(data => { this.clear(); this.deleteDraft(); |