Revert #8254
This reverts commit123b8b906c. This reverts commit60f9dbcdbd.
This commit is contained in:
parent
274edf7589
commit
d9116efb85
2 changed files with 4 additions and 4 deletions
|
|
@ -34,7 +34,7 @@ class ArchiveImporter
|
|||
|
||||
def create_contact
|
||||
person = Person.by_account_identifier(json.fetch("account_id"))
|
||||
user.contacts.create!(person_id: person.id, sharing: json.fetch("sharing"), receiving: json.fetch("receiving"))
|
||||
user.contacts.create!(person_id: person.id, sharing: false, receiving: json.fetch("receiving"))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -287,17 +287,17 @@ describe MigrationService do
|
|||
|
||||
contact = user.contacts.find_by(person: Person.by_account_identifier(contact1_diaspora_id))
|
||||
expect(contact).not_to be_nil
|
||||
expect(contact.sharing).to be_truthy
|
||||
expect(contact.sharing).to be_falsey
|
||||
expect(contact.receiving).to be_falsey
|
||||
|
||||
contact = user.contacts.find_by(person: Person.by_account_identifier(contact2_diaspora_id))
|
||||
expect(contact).not_to be_nil
|
||||
expect(contact.sharing).to be_truthy
|
||||
expect(contact.sharing).to be_falsey
|
||||
expect(contact.receiving).to be_truthy
|
||||
|
||||
contact = user.contacts.find_by(person: Person.by_account_identifier(migrated_contact_new_diaspora_id))
|
||||
expect(contact).not_to be_nil
|
||||
expect(contact.sharing).to be_truthy
|
||||
expect(contact.sharing).to be_falsey
|
||||
expect(contact.receiving).to be_truthy
|
||||
|
||||
aspect = user.aspects.find_by(name: "Friends")
|
||||
|
|
|
|||
Loading…
Reference in a new issue