mirror of
https://codeberg.org/vlw/misskey-microblogger.git
synced 2025-09-13 19:03:41 +02:00
fix: always post note if its their first in a long time
This commit is contained in:
parent
153b2bef38
commit
cff692cdd0
1 changed files with 5 additions and 1 deletions
|
@ -56,6 +56,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):
|
||||
user_id = self.mk.resolve_user_id(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)
|
||||
|
|
Loading…
Add table
Reference in a new issue