fix bug lol

This commit is contained in:
2020-12-17 17:24:11 +01:00
parent 57ab996bd3
commit 7ae22fa5d2

View File

@@ -127,7 +127,7 @@ export default {
error({ statusCode: 404, message: "Post not found" });
});
const {data: likes} = await $axios.get(`posts/${params.slug}`)
const liked = 0 await $axios.get(`posts/is/${params.slug}`)
const liked = await $axios.get(`posts/is/${params.slug}`)
return {
post,
likes,