{
// 書きかけの投稿を復元
- if (!this.instant) {
+ if (!this.instant && !this.mention) {
const draft = JSON.parse(localStorage.getItem('drafts') || '{}')[this.draftId];
if (draft) {
this.text = draft.data.text;
diff --git a/src/client/app/desktop/views/pages/deck/deck.user-column.vue b/src/client/app/desktop/views/pages/deck/deck.user-column.vue
index 9281d63cf0..f87b828cf0 100644
--- a/src/client/app/desktop/views/pages/deck/deck.user-column.vue
+++ b/src/client/app/desktop/views/pages/deck/deck.user-column.vue
@@ -49,6 +49,9 @@
{{ user.followersCount | number }}
{{ $t('followers') }}
+
+
+
@@ -307,6 +310,10 @@ export default Vue.extend({
return promise;
},
+ mention() {
+ this.$post({ mention: this.user });
+ },
+
menu() {
let menu = [{
icon: 'list',
@@ -454,7 +461,7 @@ export default Vue.extend({
> .counts
display grid
- grid-template-columns 1fr 1fr 1fr
+ grid-template-columns 2fr 2fr 2fr 1fr
margin-top 8px
border-top solid 1px var(--faceDivider)
@@ -471,6 +478,9 @@ export default Vue.extend({
font-size 80%
opacity 0.7
+ > .mention
+ display flex
+
> *
> p.caption
margin 0
diff --git a/src/client/app/desktop/views/pages/user/user.header.vue b/src/client/app/desktop/views/pages/user/user.header.vue
index 685eff7326..1bc035eeac 100644
--- a/src/client/app/desktop/views/pages/user/user.header.vue
+++ b/src/client/app/desktop/views/pages/user/user.header.vue
@@ -36,6 +36,7 @@
{{ user.notesCount | number }}{{ $t('posts') }}
{{ user.followingCount | number }}{{ $t('following') }}
{{ user.followersCount | number }}{{ $t('followers') }}
+
@@ -77,6 +78,9 @@ export default Vue.extend({
}
},
methods: {
+ mention() {
+ this.$post({ mention: this.user });
+ },
onScroll() {
const banner = this.$refs.banner as any;
diff --git a/src/client/app/mobile/script.ts b/src/client/app/mobile/script.ts
index e0ccbad792..52b0d9bbb2 100644
--- a/src/client/app/mobile/script.ts
+++ b/src/client/app/mobile/script.ts
@@ -60,6 +60,7 @@ init((launch) => {
const vm = this.$root.new(PostForm, {
reply: o.reply,
+ mention: o.mention,
renote: o.renote
});
diff --git a/src/client/app/mobile/views/components/post-form-dialog.vue b/src/client/app/mobile/views/components/post-form-dialog.vue
index 15b36db945..616623cda7 100644
--- a/src/client/app/mobile/views/components/post-form-dialog.vue
+++ b/src/client/app/mobile/views/components/post-form-dialog.vue
@@ -5,6 +5,7 @@
{{ user.followersCount | number }}
{{ $t('followers') }}
+
@@ -126,6 +127,10 @@ export default Vue.extend({
});
},
+ mention() {
+ this.$post({ mention: this.user });
+ },
+
menu() {
let menu = [{
icon: ['fas', 'list'],
@@ -365,6 +370,9 @@ main
> i
font-size 14px
+ > button
+ color var(--text)
+
> nav
position -webkit-sticky
position sticky