diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-03-12 12:59:26 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-03-12 12:59:26 +0900 |
| commit | 0494c770a1904bcb2abd82dce0e8163d33a34632 (patch) | |
| tree | 53f9376d12aef7f0ea24c252e0d62b9f8cb94521 /src/client/app/mobile | |
| parent | Follow latest Web Share Target specification (diff) | |
| download | misskey-0494c770a1904bcb2abd82dce0e8163d33a34632.tar.gz misskey-0494c770a1904bcb2abd82dce0e8163d33a34632.tar.bz2 misskey-0494c770a1904bcb2abd82dce0e8163d33a34632.zip | |
Better share template
Diffstat (limited to 'src/client/app/mobile')
| -rw-r--r-- | src/client/app/mobile/views/pages/share.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/app/mobile/views/pages/share.vue b/src/client/app/mobile/views/pages/share.vue index dbafc9e7ba..e238d325da 100644 --- a/src/client/app/mobile/views/pages/share.vue +++ b/src/client/app/mobile/views/pages/share.vue @@ -28,9 +28,10 @@ export default Vue.extend({ computed: { template(): string { let t = ''; - if (this.title) t += `【${title}】\n`; + if (this.title && this.url) t += `【[${title}](${url})】\n`; + if (this.title && !this.url) t += `【${title}】\n`; if (this.text) t += `${text}\n`; - if (this.url) t += `${url}`; + if (!this.title && this.url) t += `${url}`; return t.trim(); } }, |