diff options
author | cmrd Senya <senya@riseup.net> | 2019-04-27 17:44:19 +0300 |
---|---|---|
committer | cmrd Senya <senya@riseup.net> | 2019-04-27 17:44:19 +0300 |
commit | ee0c3e986589c504018f402f3356b45c0be57855 (patch) | |
tree | 6e709065a77b9bf7e129c5bddc41bed2333d8336 /lib | |
parent | b5db8820d6ced24c17a4e1dae0d11bfed65d918c (diff) |
Account import: add missing profile fields
Diffstat (limited to 'lib')
-rw-r--r-- | lib/archive_importer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/archive_importer.rb b/lib/archive_importer.rb index 67ba34a97..d2310437c 100644 --- a/lib/archive_importer.rb +++ b/lib/archive_importer.rb @@ -42,7 +42,7 @@ class ArchiveImporter attr_reader :archive_hash def profile_attributes - allowed_keys = %w[first_name last_name image_url bio searchable nsfw tag_string] + allowed_keys = %w[first_name last_name image_url bio gender location birthday searchable nsfw tag_string] profile_data = archive_hash["user"]["profile"]["entity_data"] convert_keys(profile_data, allowed_keys).tap do |attrs| attrs[:public_details] = profile_data["public"] |