Skip to content

Commit

Permalink
mark entry as viewed when opening in reader
Browse files Browse the repository at this point in the history
  • Loading branch information
facundoolano committed Jan 3, 2024
1 parent 6f2f233 commit d7bddae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions feedi/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ def entry_view(id):
# if full browser load or explicit content request, fetch the article synchronously
entry.fetch_content()
if entry.content_full:
entry.viewed = entry.viewed or datetime.datetime.utcnow()
db.session.commit()
return flask.render_template("entry_content.html", entry=entry, content=entry.content_full)

Expand Down

0 comments on commit d7bddae

Please sign in to comment.