[1mdiff --git a/model.py b/model.py[m
[1mindex 95e9b44..f475a14 100644[m
[1m--- a/model.py[m
[1m+++ b/model.py[m
[36m@@ -965,6 +965,7 @@[m [mclass Database:[m
cur.execute('DELETE FROM likes WHERE post=?', (post.id,))[m
cur.execute('DELETE FROM votes WHERE post=?', (post.id,))[m
cur.execute('DELETE FROM posts WHERE id=?', (post.id,))[m
[32m+[m[32m # NOTE: Comments on the destroyed post are kept as orphans.[m
if post.parent:[m
cur.execute(Database.NUM_CMTS_QUERY, (post.parent, post.parent))[m
self.commit()[m
[36m@@ -1698,6 +1699,7 @@[m [mclass Database:[m
def mark_notifications_sent(self, user):[m
cur = self.conn.cursor()[m
cur.execute("UPDATE notifs SET is_sent=TRUE WHERE dst=?", (user.id,))[m
[32m+[m[32m cur.execute("UPDATE users SET ts_email=CURRENT_TIMESTAMP() WHERE id=?", (user.id,))[m
self.commit()[m
[m
def get_notifications(self, user, id=None, post_id=None, include_hidden=False, clear=False,[m
text/plain
This content has been proxied by September (ba2dc).