Skip to content

Commit

Permalink
chore: 引数の名前を変更
Browse files Browse the repository at this point in the history
  • Loading branch information
yupix committed Nov 29, 2023
1 parent 3fad319 commit ab39041
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mipac/actions/note.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ async def fetch_reactions(

async def reply(
self,
content: str | None = None,
text: str | None = None,
visibility: INoteVisibility = "public",
visible_user_ids: list[str] | None = None,
cw: str | None = None,
Expand All @@ -440,7 +440,7 @@ async def reply(
raise ParameterError("reply_id is required")

body = create_note_body(
content=content,
content=text,
cw=cw,
visibility=visibility,
visible_user_ids=visible_user_ids,
Expand Down Expand Up @@ -689,7 +689,9 @@ async def get_all_replies(

body = {"noteId": note_id, "sinceId": since_id, "untilId": until_id, "limit": limit}

pagination = Pagination[INote](self._session, Route("POST", "/api/notes/replies"), json=body)
pagination = Pagination[INote](
self._session, Route("POST", "/api/notes/replies"), json=body
)

while True:
res_notes = await pagination.next()
Expand Down

0 comments on commit ab39041

Please sign in to comment.