feat: notes/local-timeline をサポート

pull/125/head
yupix 8 months ago
parent 41e8de38ba
commit 87067504ab
No known key found for this signature in database
GPG Key ID: 2FF705F5C56D9C06

@ -1019,6 +1019,36 @@ class NoteActions(ClientNoteActions):
return [Note(note, client=self._client) for note in res]
async def get_local_timeline(
self,
with_files: bool = False,
with_renotes: bool = True,
with_replies: bool = False,
limit: int = 10,
since_id: str | None = None,
until_id: str | None = None,
allow_partial: bool = False,
since_date: int | None = None,
until_date: int | None = None,
):
data = {
"withFiles": with_files,
"withRenotes": with_renotes,
"withReplies": with_replies,
"limit": limit,
"sinceId": since_id,
"untilId": until_id,
"allowPartial": allow_partial,
"sinceDate": since_date,
"untilDate": until_date,
}
res = await self._session.request(
Route("POST", "/api/notes/local-timeline"), json=data, auth=True
)
return [Note(note, client=self._client) for note in res]
@deprecated
async def send(
self,

Loading…
Cancel
Save