Implement instance mutes (#1311)
* Implement instance mutes. #1143 * Move new classes to instancemute component * Add progress bar while instance list loads * Add undo snackbar for instance unmuting * Update display text for instance mutes
This commit is contained in:
parent
c10f3bce24
commit
a6819ce28e
20 changed files with 494 additions and 5 deletions
|
@ -47,6 +47,7 @@ import retrofit2.http.DELETE;
|
|||
import retrofit2.http.Field;
|
||||
import retrofit2.http.FormUrlEncoded;
|
||||
import retrofit2.http.GET;
|
||||
import retrofit2.http.HTTP;
|
||||
import retrofit2.http.Header;
|
||||
import retrofit2.http.Multipart;
|
||||
import retrofit2.http.PATCH;
|
||||
|
@ -267,6 +268,21 @@ public interface MastodonApi {
|
|||
@GET("api/v1/mutes")
|
||||
Single<Response<List<Account>>> mutes(@Query("max_id") String maxId);
|
||||
|
||||
@GET("api/v1/domain_blocks")
|
||||
Single<Response<List<String>>> domainBlocks(
|
||||
@Query("max_id") String maxId,
|
||||
@Query("since_id") String sinceId,
|
||||
@Query("limit") Integer limit);
|
||||
|
||||
@FormUrlEncoded
|
||||
@POST("api/v1/domain_blocks")
|
||||
Call<Object> blockDomain(@Field("domain") String domain);
|
||||
|
||||
@FormUrlEncoded
|
||||
// Normal @DELETE doesn't support fields?
|
||||
@HTTP(method = "DELETE", path = "api/v1/domain_blocks", hasBody = true)
|
||||
Call<Object> unblockDomain(@Field("domain") String domain);
|
||||
|
||||
@GET("api/v1/favourites")
|
||||
Call<List<Status>> favourites(
|
||||
@Query("max_id") String maxId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue