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