Fix feed entry id issues

This commit is contained in:
Greg Shuflin
2025-02-05 02:31:29 -08:00
parent 44208470f8
commit c89ee29d4d
10 changed files with 58 additions and 52 deletions

View File

@@ -57,7 +57,7 @@ function renderFeedEntries(entries) {
: '<i class="fa-regular fa-square"></i>';
readToggle.onclick = async () => {
try {
const response = await fetch(`/entries/${entry.id}/state`, {
const response = await fetch(`/entries/${entry.local_id}/state`, {
method: 'PATCH',
headers: {
'Content-Type': 'application/json',
@@ -90,7 +90,7 @@ function renderFeedEntries(entries) {
titleLink.onclick = () => {
if (!entry.marked_read) {
// Mark as read in the background, don't wait for it
fetch(`/entries/${entry.id}/state`, {
fetch(`/entries/${entry.local_id}/state`, {
method: 'PATCH',
headers: {
'Content-Type': 'application/json',