diff options
Diffstat (limited to 'src/components/status/status.js')
| -rw-r--r-- | src/components/status/status.js | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js index ad08d9b7..2842ef0f 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -1,5 +1,24 @@ +import Attachment from '../attachment/attachment.vue' + const Status = { - props: [ 'status' ] + props: [ 'statusoid' ], + data: () => ({ + nsfw: true + }), + computed: { + retweet () { return !!this.statusoid.retweeted_status }, + retweeter () { return this.statusoid.user.name }, + status () { + if (this.retweet) { + return this.statusoid.retweeted_status + } else { + return this.statusoid + } + } + }, + components: { + Attachment + } } export default Status |
