Allow expires_at in filter requests
[akkoma] / lib / pleroma / config / helpers.ex
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Pleroma.Config.Helpers do
6 alias Pleroma.Config
7
8 def instance_name, do: Config.get([:instance, :name])
9
10 defp instance_notify_email do
11 Config.get([:instance, :notify_email]) || Config.get([:instance, :email])
12 end
13
14 def sender do
15 {instance_name(), instance_notify_email()}
16 end
17 end