kopia lustrzana https://github.com/nextcloud/social
rodzic
4fd2473dda
commit
f167062477
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue