diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-05 07:34:23 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-05 07:34:29 +0900 |
| commit | 5daa9262f6650196e93ce90b9bc3b602b4fe5dc8 (patch) | |
| tree | 4abd86c5cfc4e7bc3d2af8b8f7e3a724f75fb8ab /src | |
| parent | Fix bug (diff) | |
| download | sharkey-5daa9262f6650196e93ce90b9bc3b602b4fe5dc8.tar.gz sharkey-5daa9262f6650196e93ce90b9bc3b602b4fe5dc8.tar.bz2 sharkey-5daa9262f6650196e93ce90b9bc3b602b4fe5dc8.zip | |
#304
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/app/desktop/views/components/posts.post.vue | 6 | ||||
| -rw-r--r-- | src/web/app/mobile/views/components/post.vue | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/web/app/desktop/views/components/posts.post.vue b/src/web/app/desktop/views/components/posts.post.vue index ce0a31d183..8cf21f8a4c 100644 --- a/src/web/app/desktop/views/components/posts.post.vue +++ b/src/web/app/desktop/views/components/posts.post.vue @@ -171,7 +171,7 @@ export default Vue.extend({ if ((this as any).os.isSignedIn) { this.connection.send({ type: 'capture', - id: this.post.id + id: this.p.id }); if (withHandler) this.connection.on('post-updated', this.onStreamPostUpdated); } @@ -180,7 +180,7 @@ export default Vue.extend({ if ((this as any).os.isSignedIn) { this.connection.send({ type: 'decapture', - id: this.post.id + id: this.p.id }); if (withHandler) this.connection.off('post-updated', this.onStreamPostUpdated); } @@ -192,6 +192,8 @@ export default Vue.extend({ const post = data.post; if (post.id == this.post.id) { this.$emit('update:post', post); + } else if (post.id == this.post.repost_id) { + this.post.repost = post; } }, reply() { diff --git a/src/web/app/mobile/views/components/post.vue b/src/web/app/mobile/views/components/post.vue index 4c8937f516..fafc1429c2 100644 --- a/src/web/app/mobile/views/components/post.vue +++ b/src/web/app/mobile/views/components/post.vue @@ -146,7 +146,7 @@ export default Vue.extend({ if ((this as any).os.isSignedIn) { this.connection.send({ type: 'capture', - id: this.post.id + id: this.p.id }); if (withHandler) this.connection.on('post-updated', this.onStreamPostUpdated); } @@ -155,7 +155,7 @@ export default Vue.extend({ if ((this as any).os.isSignedIn) { this.connection.send({ type: 'decapture', - id: this.post.id + id: this.p.id }); if (withHandler) this.connection.off('post-updated', this.onStreamPostUpdated); } @@ -167,6 +167,8 @@ export default Vue.extend({ const post = data.post; if (post.id == this.post.id) { this.$emit('update:post', post); + } else if (post.id == this.post.repost_id) { + this.post.repost = post; } }, reply() { |