mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
only mark if markable
This commit is contained in:
@@ -37,8 +37,10 @@ public class FeedEntryService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
FeedEntryStatus status = feedEntryStatusDAO.getStatus(sub, entry);
|
FeedEntryStatus status = feedEntryStatusDAO.getStatus(sub, entry);
|
||||||
status.setRead(read);
|
if (status.isMarkable()) {
|
||||||
feedEntryStatusDAO.saveOrUpdate(status);
|
status.setRead(read);
|
||||||
|
feedEntryStatusDAO.saveOrUpdate(status);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void starEntry(User user, Long entryId, Long subscriptionId,
|
public void starEntry(User user, Long entryId, Long subscriptionId,
|
||||||
@@ -56,8 +58,10 @@ public class FeedEntryService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
FeedEntryStatus status = feedEntryStatusDAO.getStatus(sub, entry);
|
FeedEntryStatus status = feedEntryStatusDAO.getStatus(sub, entry);
|
||||||
status.setStarred(starred);
|
if (status.isMarkable()) {
|
||||||
feedEntryStatusDAO.saveOrUpdate(status);
|
status.setStarred(starred);
|
||||||
|
feedEntryStatusDAO.saveOrUpdate(status);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user