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