Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
feature/noid/sql-rewrite-0929
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',

Wyświetl plik

@ -209,11 +209,11 @@ const actions = {
// Also load replies when displaying a single post timeline
if (state.type === 'single-post') {
result.push(response.data)
// axios.get(OC.generateUrl(``)).then((response) => {
// if (response.status !== -1) {
// result.concat(response.data.result)
// }
// }
// axios.get(OC.generateUrl(``)).then((response) => {
// if (response.status !== -1) {
// result.concat(response.data.result)
// }
// }
} else {
result = response.data.result
}