Basic attachments, some retweet fixes.
This commit is contained in:
parent
7b92ca6f94
commit
5f69014575
6 changed files with 76 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue