Merge branch 'develop' into oembed_provider
authorraeno <just.raeno@gmail.com>
Tue, 18 Dec 2018 13:59:32 +0000 (14:59 +0100)
committerraeno <just.raeno@gmail.com>
Tue, 18 Dec 2018 13:59:32 +0000 (14:59 +0100)
1  2 
config/config.exs
lib/pleroma/formatter.ex
lib/pleroma/user.ex
lib/pleroma/web/router.ex
mix.exs
mix.lock

Simple merge
Simple merge
Simple merge
index 751624e80cc381adee8e85b8f0380521be369263,dd1985d6ee1b91a16e0c88517f0edc9fa1e49f27..49b007422a9390c4444ca2c0ee360ed8d5ab4ce9
@@@ -467,21 -459,7 +470,21 @@@ defmodule Fallback.RedirectController d
    def redirector(conn, _params) do
      conn
      |> put_resp_content_type("text/html")
 -    |> send_file(200, Pleroma.Plugs.InstanceStatic.file_path("index.html"))
 +    |> send_file(200, index_file_path())
 +  end
 +
 +  def redirector_with_meta(conn, params) do
 +    {:ok, index_content} = File.read(index_file_path())
 +    tags = Metadata.build_tags(params)
 +    response = String.replace(index_content, "<!--server-generated-meta-->", tags)
 +
 +    conn
 +    |> put_resp_content_type("text/html")
 +    |> send_resp(200, response)
 +  end
 +
 +  def index_file_path do
-     Application.app_dir(:pleroma, "priv/static/index.html")
++    Pleroma.Plugs.InstanceStatic.file_path("index.html"))
    end
  
    def registration_page(conn, params) do
diff --cc mix.exs
Simple merge
diff --cc mix.lock
Simple merge