Quellcode durchsuchen

add suggestions/web config

tags/v0.9.9
Hakaba Hitoyo vor 6 Jahren
Ursprung
Commit
f72cfada1a
2 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  1. +2
    -1
      config/config.exs
  2. +2
    -1
      lib/pleroma/web/nodeinfo/nodeinfo_controller.ex

+ 2
- 1
config/config.exs Datei anzeigen

@@ -113,7 +113,8 @@ config :pleroma, :suggestions,
enabled: false,
third_party_engine:
"http://vinayaka.distsn.org/cgi-bin/vinayaka-user-match-suggestions-api.cgi?{{host}}+{{user}}",
timeout: 300_000
timeout: 300_000,
web: "https://vinayaka.distsn.org/?{{host}}+{{user}}"

# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.


+ 2
- 1
lib/pleroma/web/nodeinfo/nodeinfo_controller.ex Datei anzeigen

@@ -50,7 +50,8 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
suggestions: %{
enabled: Keyword.get(suggestions, :enabled, false),
thirdPartyEngine: Keyword.get(suggestions, :third_party_engine, ""),
timeout: Keyword.get(suggestions, :timeout, 5000)
timeout: Keyword.get(suggestions, :timeout, 5000),
web: Keyword.get(suggestions, :web, "")
}
}
}


Laden…
Abbrechen
Speichern