fix list editing by moving account_ids from query to form param (#1690)

* fix list editing by moving account_ids from query to form param

* fix DialogFramentStyle
This commit is contained in:
Konrad Pozniak 2020-02-18 08:45:10 +01:00 committed by GitHub
commit 3f3166522b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 7 deletions

View file

@ -428,16 +428,19 @@ interface MastodonApi {
@Query("limit") limit: Int
): Single<List<Account>>
@DELETE("api/v1/lists/{listId}/accounts")
@FormUrlEncoded
// @DELETE doesn't support fields
@HTTP(method = "DELETE", path = "api/v1/lists/{listId}/accounts", hasBody = true)
fun deleteAccountFromList(
@Path("listId") listId: String,
@Query("account_ids[]") accountIds: List<String>
@Field("account_ids[]") accountIds: List<String>
): Completable
@FormUrlEncoded
@POST("api/v1/lists/{listId}/accounts")
fun addCountToList(
@Path("listId") listId: String,
@Query("account_ids[]") accountIds: List<String>
@Field("account_ids[]") accountIds: List<String>
): Completable
@GET("/api/v1/conversations")