From cff692cdd0c2bd01f5167b4a2e3b45b2db59e1c4 Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Sat, 9 Nov 2024 18:41:14 +0100 Subject: [PATCH] fix: always post note if its their first in a long time --- src/Poster.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Poster.py b/src/Poster.py index a565e84..98641b0 100644 --- a/src/Poster.py +++ b/src/Poster.py @@ -55,6 +55,10 @@ class Poster(): # Get last notes for user notes = self.mk.get_user_notes(self.user.username) + + # User will post note if it's their first in a long time + if (not notes): + return True # New note is a DM to a user if (username): @@ -66,7 +70,7 @@ class Poster(): if (user_id in note["visibleUserIds"]): return self.note_is_older_than_cooldown(note) - # User will post a DM to username if its their first in a long time + # User will post a DM to username if its their first DM to this user in a long time return True # Get latest public notes from user notes (non-DMs)