Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit2f7b1b7

Browse files
committed
chore: merge branch 'mailer' into dev
2 parents3cc2483 +91072f7 commit2f7b1b7

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

‎lib/groupher_server/mailer/email.ex‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,12 @@ defmodule GroupherServer.Email do
9090
defnotify_admin(%{type:type,title:title}=info,:new_content)do
9191
case@conf_notify_admin_on_content_createddo
9292
true->
93-
hello=
94-
base_mail()
95-
|>to(@admin_email)
96-
|>subject("new#{type}:#{title}")
97-
|>html_body(Templates.NotifyAdminOnContentCreated.html(info))
98-
|>text_body(Templates.NotifyAdminRegister.text())
99-
|>Mailer.deliver_later()
93+
base_mail()
94+
|>to(@admin_email)
95+
|>subject("new#{type}:#{title}")
96+
|>html_body(Templates.NotifyAdminOnContentCreated.html(info))
97+
|>text_body(Templates.NotifyAdminOnContentCreated.text(info))
98+
|>Mailer.deliver_later()
10099

101100
false->
102101
{:ok,:pass}

‎lib/groupher_server/mailer/templates/notify_admin_on_content_created.ex‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,9 +504,9 @@ defmodule GroupherServer.Email.Templates.NotifyAdminOnContentCreated do
504504
"""
505505
end
506506

507-
deftext()do
507+
deftext(%{author_name:author_name,title:title})do
508508
"""
509-
有人发帖了
509+
#{author_name} 发布了#{title}
510510
"""
511511
end
512512

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp