pleroma-fe/src/components/status/status.js

23 行
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