Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcmrd Senya <senya@riseup.net>2019-04-27 17:44:19 +0300
committercmrd Senya <senya@riseup.net>2019-04-27 17:44:19 +0300
commitee0c3e986589c504018f402f3356b45c0be57855 (patch)
tree6e709065a77b9bf7e129c5bddc41bed2333d8336 /lib
parentb5db8820d6ced24c17a4e1dae0d11bfed65d918c (diff)
Account import: add missing profile fields
Diffstat (limited to 'lib')
-rw-r--r--lib/archive_importer.rb2
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"]