fix: votes + marked as read dont save when you go back

This commit is contained in:
James Xylight committed 2025-07-12 11:21:52 -07:00
1 parent 1edad4ac60
commit c969a32767
5 files changed
+16 -20

No files matched your search

+2 -1
View File
@@ -9,6 +9,7 @@
import Pageination from '$lib/components/ui/Pageination.svelte'
import { t } from '$lib/i18n/translations.js'
import { site } from '$lib/lemmy.svelte.js'
import { postFeeds } from '$lib/lemmy/postfeed.svelte.js'
import { settings } from '$lib/settings.svelte.js'
import Button from 'mono-svelte/button/Button.svelte'
import { ArrowRight, ChartBar, Icon } from 'svelte-hero-icons'
@@ -63,7 +64,7 @@
<FeedComponent
bind:posts={data.feed.posts.posts}
bind:feedData={data.feed}
bind:feedData={() => data.feed, v => (postFeeds.value.main.data = v)}
feedId="main"
/>
<svelte:element
@@ -116,7 +116,7 @@
<PostMeta
community={data.post.value.post_view.community}
user={data.post.value.post_view.creator}
bind:subscribed={data.post.value.community_view.subscribed}
subscribed={data.post.value.community_view.subscribed}
badges={{
deleted: data.post.value.post_view.post.deleted,
removed: data.post.value.post_view.post.removed,
@@ -162,7 +162,7 @@
{/if}
<div class="w-full relative">
<PostActions
bind:post={data.post.value.post_view}
post={data.post.value.post_view}
onedit={() =>
toast({
content: 'The post was edited successfully.',