FIX: Users who have topic keys should also be invited
diff --git a/app/jobs/scheduled/encrypt_consistency.rb b/app/jobs/scheduled/encrypt_consistency.rb
index 5958108..732523a 100644
--- a/app/jobs/scheduled/encrypt_consistency.rb
+++ b/app/jobs/scheduled/encrypt_consistency.rb
@@ -32,6 +32,7 @@ module Jobs
SQL
).each do |row|
Discourse.warn('User has topic key, but was not invited to topic.', user_id: row.user_id, topic_id: row.topic_id)
+ TopicAllowedUser.create(user_id: row.user_id, topic_id: row.topic_id)
end
end
end
GitHub sha: ed8b3dd2