summaryrefslogtreecommitdiff
path: root/src/client/components
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2020-02-09 03:49:18 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2020-02-09 03:49:18 +0900
commit390279a4a820e0b9678c2514a0d4cebae6992aa6 (patch)
tree37ff1f74a2adfeb25067a4d637b6d2ed9434f417 /src/client/components
parent非ログイン時に検索欄がズレていたのを修正 (#5883) (diff)
downloadmisskey-390279a4a820e0b9678c2514a0d4cebae6992aa6.tar.gz
misskey-390279a4a820e0b9678c2514a0d4cebae6992aa6.tar.bz2
misskey-390279a4a820e0b9678c2514a0d4cebae6992aa6.zip
Fix #5885
Diffstat (limited to 'src/client/components')
-rw-r--r--src/client/components/note.vue10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/client/components/note.vue b/src/client/components/note.vue
index 80d6180b79..0e9272ec36 100644
--- a/src/client/components/note.vue
+++ b/src/client/components/note.vue
@@ -265,14 +265,8 @@ export default Vue.extend({
methods: {
capture(withHandler = false) {
if (this.$store.getters.isSignedIn) {
- if (document.body.contains(this.$el)) {
- this.connection.send('sn', { id: this.appearNote.id });
- if (withHandler) this.connection.on('noteUpdated', this.onStreamNoteUpdated);
- } else {
- this.$once('hook:activated', () => {
- this.capture(withHandler);
- });
- }
+ this.connection.send(document.body.contains(this.$el) ? 'sn' : 's', { id: this.appearNote.id });
+ if (withHandler) this.connection.on('noteUpdated', this.onStreamNoteUpdated);
}
},