Proper URL for the single-post timeline

Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
feature/noid/sql-rewrite-0929
Cyrille Bollu 2019-09-15 19:21:55 +02:00 zatwierdzone przez Maxence Lange
rodzic 15b7336751
commit 6d6fa8a527
2 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -119,9 +119,13 @@ export default {
}
// Display internal posts
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',
params: {
account: account,
id: this.item.id,
localId: postId,
type: 'single-post'
}
})

Wyświetl plik

@ -59,7 +59,7 @@ export default new Router({
]
},
{
path: '/:index(index.php/)?apps/social/post?id=:id',
path: '/:index(index.php/)?apps/social/:account/:localId',
components: {
default: TimelineSinglePost
},