mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 02:41:13 +08:00
DEV: Skip converting local dates as json
This commit is contained in:
@ -37,7 +37,7 @@ after_initialize do
|
||||
end
|
||||
|
||||
if dates.present?
|
||||
post.custom_fields[DiscourseLocalDates::POST_CUSTOM_FIELD] = dates.to_json
|
||||
post.custom_fields[DiscourseLocalDates::POST_CUSTOM_FIELD] = dates
|
||||
post.save_custom_fields
|
||||
elsif !post.custom_fields[DiscourseLocalDates::POST_CUSTOM_FIELD].nil?
|
||||
post.custom_fields.delete(DiscourseLocalDates::POST_CUSTOM_FIELD)
|
||||
|
Reference in New Issue
Block a user