diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-05-26 18:34:27 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-05-26 18:34:27 +0200 |
commit | f13d910f3ea3af1e6b5ff2ebfa084a86b1d7dfde (patch) | |
tree | 6e373aa9ced74f68ee366cc50e23d14a524c36f9 /app/models/status.rb | |
parent | 444b65009411a08ddab95ec60b86b3cf63086c2e (diff) | |
parent | 088dc0ec5a383006952c0b15508af882a4c1109c (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app/models/status.rb')
-rw-r--r-- | app/models/status.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/status.rb b/app/models/status.rb index 21a574a71..3efa23ae2 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -511,7 +511,7 @@ class Status < ApplicationRecord end def set_poll_id - update_column(:poll_id, poll.id) unless poll.nil? + update_column(:poll_id, poll.id) if association(:poll).loaded? && poll.present? end def set_visibility |