Merge branch 'feature/twitterapi-unrepeat' into 'develop'
authorlambda <pleromagit@rogerbraun.net>
Thu, 14 Jun 2018 07:19:36 +0000 (07:19 +0000)
committerlambda <pleromagit@rogerbraun.net>
Thu, 14 Jun 2018 07:19:36 +0000 (07:19 +0000)
Add TwitterAPI unretweet endpoint and cleanup AP.unannounce

See merge request pleroma/pleroma!218

1  2 
lib/pleroma/web/activity_pub/activity_pub.ex
lib/pleroma/web/activity_pub/transmogrifier.ex
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
lib/pleroma/web/router.ex
lib/pleroma/web/twitter_api/twitter_api_controller.ex
test/web/twitter_api/twitter_api_controller_test.exs

index 0e6369147652982072500b8e4c39d6ff40cd178a,95627f8fdc408d21812ca006eecb9c16f8bbf8da..1c1c26c563b695a207e7a90c47270945b58b17d6
@@@ -244,12 -238,9 +244,13 @@@ defmodule Pleroma.Web.Router d
  
      post("/statuses/update", TwitterAPI.Controller, :status_update)
      post("/statuses/retweet/:id", TwitterAPI.Controller, :retweet)
+     post("/statuses/unretweet/:id", TwitterAPI.Controller, :unretweet)
      post("/statuses/destroy/:id", TwitterAPI.Controller, :delete_post)
  
 +    get("/pleroma/friend_requests", TwitterAPI.Controller, :friend_requests)
 +    post("/pleroma/friendships/approve", TwitterAPI.Controller, :approve_friend_request)
 +    post("/pleroma/friendships/deny", TwitterAPI.Controller, :deny_friend_request)
 +
      post("/friendships/create", TwitterAPI.Controller, :follow)
      post("/friendships/destroy", TwitterAPI.Controller, :unfollow)
      post("/blocks/create", TwitterAPI.Controller, :block)