projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[#1892] Excluded internal users (applications) from user search results, reinstated...
[akkoma]
/
lib
/
pleroma
/
instances.ex
diff --git
a/lib/pleroma/instances.ex
b/lib/pleroma/instances.ex
index 5e107f4c957afcc899a7ae581410f713d2689b64..557e8decfdd3c41e3d52e73edaa4469c4c603839 100644
(file)
--- a/
lib/pleroma/instances.ex
+++ b/
lib/pleroma/instances.ex
@@
-1,3
+1,7
@@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
defmodule Pleroma.Instances do
@moduledoc "Instances context."
defmodule Pleroma.Instances do
@moduledoc "Instances context."
@@
-13,7
+17,7
@@
defmodule Pleroma.Instances do
def reachability_datetime_threshold do
federation_reachability_timeout_days =
def reachability_datetime_threshold do
federation_reachability_timeout_days =
- Pleroma.Config.get(
:instance)[:federation_reachability_timeout_days] || 0
+ Pleroma.Config.get(
[:instance, :federation_reachability_timeout_days], 0)
if federation_reachability_timeout_days > 0 do
NaiveDateTime.add(
if federation_reachability_timeout_days > 0 do
NaiveDateTime.add(