Support "replies policy" for lists (#4072)
This commit is contained in:
parent
0f1d63e3c3
commit
55ed6841ff
7 changed files with 74 additions and 14 deletions
|
|
@ -599,7 +599,8 @@ interface MastodonApi {
|
|||
@POST("api/v1/lists")
|
||||
suspend fun createList(
|
||||
@Field("title") title: String,
|
||||
@Field("exclusive") exclusive: Boolean?
|
||||
@Field("exclusive") exclusive: Boolean?,
|
||||
@Field("replies_policy") replyPolicy: String,
|
||||
): NetworkResult<MastoList>
|
||||
|
||||
@FormUrlEncoded
|
||||
|
|
@ -607,7 +608,8 @@ interface MastodonApi {
|
|||
suspend fun updateList(
|
||||
@Path("listId") listId: String,
|
||||
@Field("title") title: String,
|
||||
@Field("exclusive") exclusive: Boolean?
|
||||
@Field("exclusive") exclusive: Boolean?,
|
||||
@Field("replies_policy") replyPolicy: String,
|
||||
): NetworkResult<MastoList>
|
||||
|
||||
@DELETE("api/v1/lists/{listId}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue