From 13103cc2d839526674ea36baf821ebff57f34ed4 Mon Sep 17 00:00:00 2001 From: AkiraFukushima Date: Mon, 11 May 2020 22:11:46 +0900 Subject: [PATCH] refs #1321 Show quoted status in timelines --- .../components/molecules/Toot/Quote.vue | 70 +++++++++++++++++++ src/renderer/components/organisms/Toot.vue | 15 +++- 2 files changed, 82 insertions(+), 3 deletions(-) create mode 100644 src/renderer/components/molecules/Toot/Quote.vue diff --git a/src/renderer/components/molecules/Toot/Quote.vue b/src/renderer/components/molecules/Toot/Quote.vue new file mode 100644 index 00000000..1c9373e1 --- /dev/null +++ b/src/renderer/components/molecules/Toot/Quote.vue @@ -0,0 +1,70 @@ + + + + + diff --git a/src/renderer/components/organisms/Toot.vue b/src/renderer/components/organisms/Toot.vue index 21640fdb..50b79910 100644 --- a/src/renderer/components/organisms/Toot.vue +++ b/src/renderer/components/organisms/Toot.vue @@ -89,6 +89,13 @@
+ -
+
@@ -227,6 +234,7 @@ import emojify from '~/src/renderer/utils/emojify' import FailoverImg from '~/src/renderer/components/atoms/FailoverImg' import Poll from '~/src/renderer/components/molecules/Toot/Poll' import LinkPreview from '~/src/renderer/components/molecules/Toot/LinkPreview' +import Quote from '@/components/molecules/Toot/Quote' import { setInterval, clearInterval } from 'timers' export default { @@ -238,7 +246,8 @@ export default { FailoverImg, Poll, Picker, - LinkPreview + LinkPreview, + Quote }, data() { return { @@ -296,7 +305,7 @@ export default { return moment(this.originalMessage.created_at).format('LLLL') }, originalMessage: function () { - if (this.message.reblog !== null) { + if (this.message.reblog && this.message.content === this.message.reblog.content) { return this.message.reblog } else { return this.message