FIX: pass args to super
This commit is contained in:
Родитель
7483198d68
Коммит
6102c2afbd
|
@ -1,6 +1,6 @@
|
|||
# name: post-read-email
|
||||
# about: A plugin to give users the option of marking posts as read when emailed
|
||||
# version: 0.0.5
|
||||
# version: 0.0.6
|
||||
# authors: Leo McArdle
|
||||
# url: https://github.com/mozilla/discourse-post-read-email
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ DiscoursePluginRegistry.serialized_current_user_fields << 'mark_post_as_read_on_
|
|||
|
||||
module PostReadEmail
|
||||
module EmailSenderExtensions
|
||||
def send
|
||||
email_log = super
|
||||
def send(**args)
|
||||
email_log = super(**args)
|
||||
begin
|
||||
return email_log unless SiteSetting.post_read_email_enabled
|
||||
return email_log if email_log.kind_of?(SkippedEmailLog)
|
||||
|
|
Загрузка…
Ссылка в новой задаче