summaryrefslogtreecommitdiff
path: root/src/client/components
diff options
context:
space:
mode:
authortamaina <tamaina@hotmail.co.jp>2020-05-26 14:33:55 +0900
committertamaina <tamaina@hotmail.co.jp>2020-05-26 14:33:55 +0900
commit9bee9d20f751d2cf5833c5b2cf8be875496250c2 (patch)
tree200771d0da80c63cfa5609d7d73141be25f0b0b1 /src/client/components
parentResolve https://github.com/syuilo/misskey/pull/6406#issuecomment-633203670 (diff)
downloadsharkey-9bee9d20f751d2cf5833c5b2cf8be875496250c2.tar.gz
sharkey-9bee9d20f751d2cf5833c5b2cf8be875496250c2.tar.bz2
sharkey-9bee9d20f751d2cf5833c5b2cf8be875496250c2.zip
Improve typing
Diffstat (limited to 'src/client/components')
-rw-r--r--src/client/components/note.vue3
-rw-r--r--src/client/components/post-form.vue3
2 files changed, 5 insertions, 1 deletions
diff --git a/src/client/components/note.vue b/src/client/components/note.vue
index 6e513a4b2a..1136781ca2 100644
--- a/src/client/components/note.vue
+++ b/src/client/components/note.vue
@@ -278,6 +278,9 @@ export default Vue.extend({
(this as any).$root.api('promo/read', {
noteId: this.appearNote.id
});
+ this.$root.stream.send('readNotification', {
+ id: notification.id
+ });
this.hideThisNote = true;
},
diff --git a/src/client/components/post-form.vue b/src/client/components/post-form.vue
index cdb61f51d5..3be09b4aea 100644
--- a/src/client/components/post-form.vue
+++ b/src/client/components/post-form.vue
@@ -67,6 +67,7 @@ import extractMentions from '../../misc/extract-mentions';
import getAcct from '../../misc/acct/render';
import { formatTimeString } from '../../misc/format-time-string';
import { selectDriveFile } from '../scripts/select-drive-file';
+import { noteVisibilities } from '../../types'
export default Vue.extend({
components: {
@@ -405,7 +406,7 @@ export default Vue.extend({
},
applyVisibility(v: string) {
- this.visibility = ['public', 'home', 'followers', 'specified'].includes(v) ? v : 'public'; // v11互換性のため
+ this.visibility = (noteVisibilities as unknown as string[]).includes(v) ? v : 'public'; // v11互換性のため
},
addVisibleUser() {