مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2026-01-17 05:33:35 +00:00
style(rubocop): Lint/UnusedBlockArgument
هذا الالتزام موجود في:
@@ -553,14 +553,14 @@ module Postal
|
||||
private
|
||||
|
||||
def _update
|
||||
@database.update("messages", @attributes.reject { |k, v| k == :id }, where: { id: @attributes["id"] })
|
||||
@database.update("messages", @attributes.reject { |k, _| k == :id }, where: { id: @attributes["id"] })
|
||||
end
|
||||
|
||||
def _create
|
||||
self.timestamp = Time.now.to_f if timestamp.blank?
|
||||
self.status = "Pending" if status.blank?
|
||||
self.token = Nifty::Utils::RandomString.generate(length: 12) if token.blank?
|
||||
last_id = @database.insert("messages", @attributes.reject { |k, v| k == :id })
|
||||
last_id = @database.insert("messages", @attributes.reject { |k, _| k == :id })
|
||||
@attributes["id"] = last_id
|
||||
@database.statistics.increment_all(timestamp, scope)
|
||||
Statistic.global.increment!(:total_messages)
|
||||
|
||||
@@ -188,7 +188,7 @@ module Postal
|
||||
authenticate(password)
|
||||
end
|
||||
|
||||
username_handler = proc do |data|
|
||||
username_handler = proc do
|
||||
@proc = password_handler
|
||||
@password_expected_next = true
|
||||
"334 UGFzc3dvcmQ6" # "Password:"
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم