mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 03:18:23 +00:00
FIX: do not strip nil string
This commit is contained in:
parent
b27e009655
commit
5ff84be8cc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user