Support "replies policy" for lists (#4072)

This commit is contained in:
Levi Bard 2023-10-26 11:21:04 +02:00 committed by GitHub
commit 55ed6841ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 74 additions and 14 deletions

View file

@ -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}")