[misskey] include 'withRenotes' parameter in API requests (#8285)
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user