مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2026-03-03 14:24:06 +00:00
Compare commits
3 الالتزامات
| المؤلف | SHA1 | التاريخ | |
|---|---|---|---|
|
|
66d26c8d4f | ||
|
|
343292bbde | ||
|
|
694240ddcd |
@@ -1,3 +1,3 @@
|
||||
{
|
||||
".": "2.3.1"
|
||||
".": "2.3.2"
|
||||
}
|
||||
|
||||
@@ -2,6 +2,13 @@
|
||||
|
||||
This file contains all the latest changes and updates to Postal.
|
||||
|
||||
## [2.3.2](https://github.com/postalserver/postal/compare/2.3.1...2.3.2) (2024-03-01)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* truncate output and details in deliveries to 250 characters ([694240d](https://github.com/postalserver/postal/commit/694240ddcdef1df9b32888de8fb743d2dee86462)), closes [#2831](https://github.com/postalserver/postal/issues/2831)
|
||||
|
||||
## [2.3.1](https://github.com/postalserver/postal/compare/2.3.0...2.3.1) (2024-02-23)
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,14 @@ module Postal
|
||||
def self.create(message, attributes = {})
|
||||
attributes = message.database.stringify_keys(attributes)
|
||||
attributes = attributes.merge("message_id" => message.id, "timestamp" => Time.now.to_f)
|
||||
|
||||
# Ensure that output and details don't overflow their columns. We don't need
|
||||
# these values to store more than 250 characters.
|
||||
attributes["output"] = attributes["output"][0, 250] if attributes["output"]
|
||||
attributes["details"] = attributes["details"][0, 250] if attributes["details"]
|
||||
|
||||
id = message.database.insert("deliveries", attributes)
|
||||
|
||||
delivery = Delivery.new(message, attributes.merge("id" => id))
|
||||
delivery.update_statistics
|
||||
delivery.send_webhooks
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم