summaryrefslogtreecommitdiff
path: root/src/client/app/mobile
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-03-12 12:59:26 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-03-12 12:59:26 +0900
commit0494c770a1904bcb2abd82dce0e8163d33a34632 (patch)
tree53f9376d12aef7f0ea24c252e0d62b9f8cb94521 /src/client/app/mobile
parentFollow latest Web Share Target specification (diff)
downloadmisskey-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.vue5
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();
}
},