Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
pull/730/head
Cyrille Bollu 2019-09-14 14:30:07 +02:00 zatwierdzone przez Maxence Lange
rodzic 4fd2473dda
commit f167062477
3 zmienionych plików z 9 dodań i 9 usunięć

Wyświetl plik

@ -96,8 +96,8 @@ export default {
methods: {
getSinglePostTimeline() {
let account = this.item.local ? this.item.actor_info.preferredUsername : this.item.actor_info.account
let postId = this.item.id.split('/')[this.item.id.split('/').length-1]
this.$router.push({name: 'single-post',
let postId = this.item.id.split('/')[this.item.id.split('/').length - 1]
this.$router.push({ name: 'single-post',
params: {
account: account,
id: postId,

Wyświetl plik

@ -54,7 +54,7 @@ export default new Router({
{
path: 'tags/:tag',
name: 'tags'
},
}
]
},
{
@ -63,7 +63,7 @@ export default new Router({
default: Timeline
},
props: true,
name: 'single-post',
name: 'single-post'
},
{
path: '/:index(index.php/)?apps/social/@:account',