DEV: Remove code unused code when seeding narrative bot.

This commit is contained in:
Guo Xiang Tan 2020-05-20 10:22:51 +08:00
parent 234cd5c3e7
commit b7387d4611
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20
1 changed files with 0 additions and 13 deletions

View File

@ -26,19 +26,6 @@ unless user = User.find_by(id: DiscourseNarrativeBot::BOT_USER_ID)
u.approved = true
u.trust_level = TrustLevel[4]
end
# TODO Pull the user avatar from that thread for now. In the future, pull it from a local file or from some central discobot repo.
if !Rails.env.test?
begin
UserAvatar.import_url_for_user(
"https://cdn.discourse.org/dev/uploads/default/original/2X/e/edb63d57a720838a7ce6a68f02ba4618787f2299.png",
User.find(DiscourseNarrativeBot::BOT_USER_ID),
override_gravatar: true
)
rescue
# In case the avatar can't be downloaded, don't fail seed
end
end
end
bot = User.find(DiscourseNarrativeBot::BOT_USER_ID)