[misskey] add 'text-posts' option (#8516)

do not request text-only notes by default
This commit is contained in:
Mike Fährmann
2025-11-10 16:57:28 +01:00
parent 89ece8f900
commit 9e3e12ef8e
3 changed files with 15 additions and 2 deletions

View File

@@ -248,8 +248,10 @@ class MisskeyAPI():
return self.extractor.request_json(url, method="POST", json=data)
def _pagination(self, endpoint, data):
extr = self.extractor
data["limit"] = 100
data["withRenotes"] = self.extractor.renotes
data["withRenotes"] = extr.renotes
data["withFiles"] = False if extr.config("text-posts") else True
while True:
notes = self._call(endpoint, data)