[misskey] include 'withRenotes' parameter in API requests (#8285)

This commit is contained in:
Mike Fährmann
2025-09-24 10:31:17 +02:00
parent 3c57ad414f
commit a09e9aba16

View File

@@ -25,8 +25,8 @@ class MisskeyExtractor(BaseExtractor):
def _init(self): def _init(self):
self.api = MisskeyAPI(self) self.api = MisskeyAPI(self)
self.instance = self.root.rpartition("://")[2] self.instance = self.root.rpartition("://")[2]
self.renotes = self.config("renotes", False) self.renotes = True if self.config("renotes", False) else False
self.replies = self.config("replies", True) self.replies = True if self.config("replies", True) else False
def items(self): def items(self):
for note in self.notes(): for note in self.notes():
@@ -254,6 +254,8 @@ class MisskeyAPI():
def _pagination(self, endpoint, data): def _pagination(self, endpoint, data):
data["limit"] = 100 data["limit"] = 100
data["withRenotes"] = self.extractor.renotes
while True: while True:
notes = self._call(endpoint, data) notes = self._call(endpoint, data)
if not notes: if not notes: