Basic attachments, some retweet fixes.

This commit is contained in:
Roger Braun 2016-10-28 18:08:03 +02:00
parent 7b92ca6f94
commit 5f69014575
6 changed files with 76 additions and 13 deletions

View file

@ -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