mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 12:53:12 -06:00
Fixed update in mentions
This commit is contained in:
parent
cad7c9a9fd
commit
bfbb280c27
@ -17,8 +17,8 @@ class MentionsBuffer(BaseBuffer):
|
||||
count = self.session.settings["general"]["max_toots_per_call"]
|
||||
min_id = None
|
||||
# toDo: Implement reverse timelines properly here.
|
||||
if self.name != "favorites" and self.name in self.session.db and len(self.session.db[self.name]) > 0:
|
||||
min_id = self.session.db[self.name][-1].id
|
||||
# if self.name != "favorites" and self.name in self.session.db and len(self.session.db[self.name]) > 0:
|
||||
# min_id = self.session.db[self.name][-1].id
|
||||
try:
|
||||
items = getattr(self.session.api, self.function)(min_id=min_id, limit=count, exclude_types=["follow", "favourite", "reblog", "poll", "follow_request"], *self.args, **self.kwargs)
|
||||
items.reverse()
|
||||
|
Loading…
Reference in New Issue
Block a user