We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23b83fb commit 74cf670Copy full SHA for 74cf670
lib/discourse_translator/automatic_translations.rb
@@ -30,9 +30,9 @@ def translatable?(content)
30
31
public_categories = Category.where(read_restricted: false).pluck(:id)
32
33
- if content.is_a(Post)
+ if content.is_a?(Post)
34
public_categories.include?(content.topic.category_id)
35
- elsif content.is_a(Topic)
+ elsif content.is_a?(Topic)
36
public_categories.include?(content.category_id)
37
else
38
false
0 commit comments