diff options
| author | Roger Braun <roger@rogerbraun.net> | 2016-10-28 18:08:03 +0200 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2016-10-28 18:08:03 +0200 |
| commit | 5f690145755c3972268e2750808ac98dcc17af90 (patch) | |
| tree | 3d733fd50366a96fb06fe4d9119f81119b807543 /src/components/status/status.js | |
| parent | 7b92ca6f9406fc93868273c7fd755f92443cb0be (diff) | |
Basic attachments, some retweet fixes.
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 |
