diff --git a/plugin.rb b/plugin.rb index 009d481..40d29d6 100644 --- a/plugin.rb +++ b/plugin.rb @@ -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 diff --git a/plugin_code.rb b/plugin_code.rb index 58a8cae..8080be7 100644 --- a/plugin_code.rb +++ b/plugin_code.rb @@ -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)