[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

@@ -4187,6 +4187,16 @@ Description
Fetch media from replies to other notes.
extractor.[misskey].text-posts
------------------------------
Type
``bool``
Default
``false``
Description
Also retrieve text-only notes without media content.
extractor.[moebooru].pool.metadata
----------------------------------
Type

View File

@@ -1081,7 +1081,8 @@
"access-token": null,
"include" : ["notes"],
"renotes" : false,
"replies" : true
"replies" : true,
"text-posts" : false
},
"Nijie":

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)