akkoma-fe/src/components/status/status.js
2016-10-29 01:38:41 +02:00

22 lines
441 B
JavaScript

import Attachment from '../attachment/attachment.vue'
const Status = {
props: [ 'statusoid' ],
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