logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

helpers.ex (466B)


  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2022 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