aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoreal <eal@waifu.club>2017-11-07 00:33:44 +0200
committereal <eal@waifu.club>2017-11-07 00:33:44 +0200
commitf85566324ec7cf20f070850d0cd5bd3fec25445d (patch)
tree6470b93d3fc8b197344e9c56fc9e6144e08bf358 /lib
parented1eb5deea35ff2c3487ef550fad3a543a80cb32 (diff)
downloadpleroma-f85566324ec7cf20f070850d0cd5bd3fec25445d.tar.gz
Allow profile fetching for authenticated users only.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/router.ex3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex
index f96ec7213..514320fd6 100644
--- a/lib/pleroma/web/router.ex
+++ b/lib/pleroma/web/router.ex
@@ -138,7 +138,6 @@ defmodule Pleroma.Web.Router do
get "/search", TwitterAPI.Controller, :search
get "/statusnet/tags/timeline/:tag", TwitterAPI.Controller, :public_and_external_timeline
- get "/externalprofile/show", TwitterAPI.Controller, :external_profile
end
scope "/api", Pleroma.Web do
@@ -176,6 +175,8 @@ defmodule Pleroma.Web.Router do
get "/statuses/followers", TwitterAPI.Controller, :followers
get "/statuses/friends", TwitterAPI.Controller, :friends
+
+ get "/externalprofile/show", TwitterAPI.Controller, :external_profile
end
pipeline :ostatus do