Fix feed entry id issues
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user