fix: post error
This commit is contained in:
1 parent
3a079b01f1
commit
f47aa55365
1 file changed
-15
@@ -62,21 +62,6 @@
|
|||||||
afterNavigate(async () => {
|
afterNavigate(async () => {
|
||||||
// reactivity hack
|
// reactivity hack
|
||||||
post = data.post
|
post = data.post
|
||||||
if ($profile) {
|
|
||||||
addResumable({
|
|
||||||
avatar: post.post_view.post.thumbnail_url
|
|
||||||
? optimizeImageURL(post.post_view.post.thumbnail_url, 64)
|
|
||||||
: undefined,
|
|
||||||
id: post.post_view.post.id,
|
|
||||||
url: $page.url,
|
|
||||||
name: post.post_view.post.name,
|
|
||||||
type: 'post',
|
|
||||||
subdivision: {
|
|
||||||
name: post.post_view.community.name,
|
|
||||||
avatar: post.post_view.community.icon,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const fetchOnHome = async (jwt: string) => {
|
const fetchOnHome = async (jwt: string) => {
|
||||||
|
|||||||
Reference in new issue
Block a user