kopia lustrzana https://github.com/nextcloud/social
Proper URL for the single-post timeline
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>pull/730/head
rodzic
15b7336751
commit
6d6fa8a527
|
@ -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'
|
||||
}
|
||||
})
|
||||
|
|
|
@ -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
|
||||
},
|
||||
|
|
Ładowanie…
Reference in New Issue