sforkowany z mirror/social
lint fixes
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>feature/noid/sql-rewrite-0929
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',
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue