Merge remote-tracking branch 'origin/develop' into reactions
authorlain <lain@soykaf.club>
Wed, 2 Oct 2019 11:27:55 +0000 (13:27 +0200)
committerlain <lain@soykaf.club>
Wed, 2 Oct 2019 11:27:55 +0000 (13:27 +0200)
1  2 
lib/pleroma/web/activity_pub/activity_pub.ex
lib/pleroma/web/activity_pub/transmogrifier.ex
lib/pleroma/web/activity_pub/utils.ex
lib/pleroma/web/common_api/common_api.ex
lib/pleroma/web/router.ex
test/web/activity_pub/activity_pub_test.exs
test/web/activity_pub/transmogrifier_test.exs
test/web/common_api/common_api_test.exs
test/web/pleroma_api/controllers/pleroma_api_controller_test.exs

Simple merge
index 09cbca7665f2b6edc3452ff481cc33476732f4ff,a355a14bdb79513b34d45971363f094e49812154..eae1f676bb1edd05ef3d83d2dcc2cf290c50f2d7
@@@ -287,25 -287,27 +287,36 @@@ defmodule Pleroma.Web.Router d
    end
  
    scope "/api/v1/pleroma", Pleroma.Web.PleromaAPI do
 +    pipe_through(:api)
 +
 +    get("/statuses/:id/emoji_reactions_by", PleromaAPIController, :emoji_reactions_by)
 +  end
 +
 +  scope "/api/v1/pleroma", Pleroma.Web.PleromaAPI do
 +    pipe_through(:authenticated_api)
 +
      scope [] do
+       pipe_through(:authenticated_api)
        pipe_through(:oauth_read)
        get("/conversations/:id/statuses", PleromaAPIController, :conversation_statuses)
        get("/conversations/:id", PleromaAPIController, :conversation)
      end
  
      scope [] do
+       pipe_through(:authenticated_api)
        pipe_through(:oauth_write)
        patch("/conversations/:id", PleromaAPIController, :update_conversation)
 +      post("/statuses/:id/react_with_emoji", PleromaAPIController, :react_with_emoji)
        post("/notifications/read", PleromaAPIController, :read_notification)
+       patch("/accounts/update_avatar", AccountController, :update_avatar)
+       patch("/accounts/update_banner", AccountController, :update_banner)
+       patch("/accounts/update_background", AccountController, :update_background)
+       get("/mascot", MascotController, :show)
+       put("/mascot", MascotController, :update)
+       post("/scrobble", ScrobbleController, :new_scrobble)
      end
  
      scope [] do