Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
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