Support account website field

This commit is contained in:
Alex Gleason 2022-03-17 14:49:42 -05:00
parent 020cd00804
commit 7c6c373eb2
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 7 additions and 0 deletions

View file

@ -95,6 +95,12 @@ describe('normalizeAccount()', () => {
expect(result.location).toBe('Texas');
});
it('normalizes Truth Social website', () => {
const account = require('soapbox/__fixtures__/truthsocial-account.json');
const result = normalizeAccount(account);
expect(result.website).toBe('https://soapbox.pub');
});
it('sets display_name from username', () => {
const account = { username: 'alex' };
const result = normalizeAccount(account);

View file

@ -45,6 +45,7 @@ export const AccountRecord = ImmutableRecord({
uri: '',
url: '',
username: '',
website: '',
verified: false,
// Internal fields