fix: always post note if its their first in a long time

This commit is contained in:
Victor Westerlund 2024-11-09 18:41:14 +01:00
parent 153b2bef38
commit cff692cdd0

View file

@ -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)