projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[#114] Added email confirmation resend action. Added tests
[akkoma]
/
lib
/
pleroma
/
web
/
ostatus
/
ostatus_controller.ex
diff --git
a/lib/pleroma/web/ostatus/ostatus_controller.ex
b/lib/pleroma/web/ostatus/ostatus_controller.ex
index 34fdf97274a3a4450e2233bea3215e6e1f362dae..6005eadb2e2f447b4f1d996ad4ae373a3771cb08 100644
(file)
--- a/
lib/pleroma/web/ostatus/ostatus_controller.ex
+++ b/
lib/pleroma/web/ostatus/ostatus_controller.ex
@@
-136,7
+136,7
@@
defmodule Pleroma.Web.OStatus.OStatusController do
"html" ->
conn
|> put_resp_content_type("text/html")
"html" ->
conn
|> put_resp_content_type("text/html")
- |> send_file(200,
"priv/static/index.html"
)
+ |> send_file(200,
Pleroma.Plugs.InstanceStatic.file_path("index.html")
)
_ ->
represent_activity(conn, format, activity, user)
_ ->
represent_activity(conn, format, activity, user)
@@
-157,7
+157,7
@@
defmodule Pleroma.Web.OStatus.OStatusController do
conn,
"activity+json",
%Activity{data: %{"type" => "Create"}} = activity,
conn,
"activity+json",
%Activity{data: %{"type" => "Create"}} = activity,
- user
+
_
user
) do
object = Object.normalize(activity.data["object"])
) do
object = Object.normalize(activity.data["object"])
@@
-166,7
+166,7
@@
defmodule Pleroma.Web.OStatus.OStatusController do
|> json(ObjectView.render("object.json", %{object: object}))
end
|> json(ObjectView.render("object.json", %{object: object}))
end
- defp represent_activity(conn, "activity+json", _, _) do
+ defp represent_activity(
_
conn, "activity+json", _, _) do
{:error, :not_found}
end
{:error, :not_found}
end