MailingList --> EmailList

This commit is contained in:
Alex Gleason 2021-06-14 20:13:47 -05:00
parent 90df530dec
commit 9ec3865725
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
3 changed files with 6 additions and 6 deletions

View File

@ -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.
"""

View File

@ -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")

View File

@ -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