mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FIX: do not strip nil string
This commit is contained in:
@ -268,7 +268,7 @@ after_initialize do
|
||||
PollOption.create!(
|
||||
poll: created_poll,
|
||||
digest: option["id"].presence,
|
||||
html: option["html"].presence.strip
|
||||
html: option["html"].presence&.strip
|
||||
)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user