Skip to content

Commit a028869

Browse files
committed
fix type checking of string with int
1 parent 70c4642 commit a028869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module ::CommunityCustomFields
6060
topic.custom_fields[:waiting_since] = nil
6161
topic.custom_fields[:waiting_id] = nil
6262
else
63-
if user.id != topic.custom_fields[:waiting_id]
63+
if user.id != topic.custom_fields[:waiting_id].to_i
6464
topic.custom_fields[:waiting_since] = Time.now.utc.iso8601
6565
topic.custom_fields[:waiting_id] = user.id
6666
end

0 commit comments

Comments
 (0)