MailingList --> EmailList
This commit is contained in:
parent
90df530dec
commit
9ec3865725
@ -2,7 +2,7 @@
|
||||
# Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
|
||||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
defmodule Pleroma.User.MailingList do
|
||||
defmodule Pleroma.User.EmailList do
|
||||
@moduledoc """
|
||||
Functions for generating email lists from local users.
|
||||
"""
|
@ -5,7 +5,7 @@
|
||||
defmodule Pleroma.Web.AdminAPI.EmailListController do
|
||||
use Pleroma.Web, :controller
|
||||
|
||||
alias Pleroma.User.MailingList
|
||||
alias Pleroma.User.EmailList
|
||||
alias Pleroma.Web.Plugs.OAuthScopesPlug
|
||||
|
||||
require Logger
|
||||
@ -16,7 +16,7 @@ defmodule Pleroma.Web.AdminAPI.EmailListController do
|
||||
)
|
||||
|
||||
def subscribers(conn, _params) do
|
||||
csv = MailingList.generate_csv()
|
||||
csv = EmailList.generate_csv()
|
||||
|
||||
conn
|
||||
|> put_resp_content_type("text/csv")
|
||||
|
@ -2,8 +2,8 @@
|
||||
# Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
|
||||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
defmodule Pleroma.User.MailingListTest do
|
||||
alias Pleroma.User.MailingList
|
||||
defmodule Pleroma.User.EmailListTest do
|
||||
alias Pleroma.User.EmailList
|
||||
|
||||
use Pleroma.DataCase
|
||||
|
||||
@ -21,6 +21,6 @@ defmodule Pleroma.User.MailingListTest do
|
||||
#{user3.email}\
|
||||
"""
|
||||
|
||||
assert MailingList.generate_csv() == expected
|
||||
assert EmailList.generate_csv() == expected
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user