mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe.git
synced 2025-02-23 05:33:05 +01:00
28 lines
610 B
JavaScript
28 lines
610 B
JavaScript
import Status from '../status/status.vue'
|
|
// Temporary
|
|
import { prepareStatus, updateTimestampsInStatuses } from '../../modules/statuses.js'
|
|
import { map } from 'lodash'
|
|
|
|
const Mentions = {
|
|
data () {
|
|
return {
|
|
mentions: []
|
|
}
|
|
},
|
|
computed: {
|
|
username () {
|
|
return this.$route.params.username
|
|
}
|
|
},
|
|
components: {
|
|
Status
|
|
},
|
|
created () {
|
|
this.$store.state.api.backendInteractor.fetchMentions({username: this.username})
|
|
.then((mentions) => {
|
|
this.mentions = updateTimestampsInStatuses(map(mentions, prepareStatus))
|
|
})
|
|
}
|
|
}
|
|
|
|
export default Mentions
|