Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

18 líneas
466B

  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. defmodule Pleroma.Config.Helpers do
  5. alias Pleroma.Config
  6. def instance_name, do: Config.get([:instance, :name])
  7. defp instance_notify_email do
  8. Config.get([:instance, :notify_email]) || Config.get([:instance, :email])
  9. end
  10. def sender do
  11. {instance_name(), instance_notify_email()}
  12. end
  13. end