Create account normalizer
This commit is contained in:
parent
07aaa427a6
commit
7054a5e9ac
6 changed files with 35 additions and 0 deletions
35
app/soapbox/__fixtures__/fedibird-account.json
Normal file
35
app/soapbox/__fixtures__/fedibird-account.json
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
"id": "66768",
|
||||||
|
"username": "alex",
|
||||||
|
"acct": "alex",
|
||||||
|
"display_name": "",
|
||||||
|
"locked": false,
|
||||||
|
"bot": false,
|
||||||
|
"cat": false,
|
||||||
|
"discoverable": false,
|
||||||
|
"group": false,
|
||||||
|
"created_at": "2020-01-27T00:00:00.000Z",
|
||||||
|
"note": "<p></p>",
|
||||||
|
"url": "https://fedibird.com/@alex",
|
||||||
|
"avatar": "https://fedibird.com/avatars/original/missing.png",
|
||||||
|
"avatar_static": "https://fedibird.com/avatars/original/missing.png",
|
||||||
|
"header": "https://fedibird.com/headers/original/missing.png",
|
||||||
|
"header_static": "https://fedibird.com/headers/original/missing.png",
|
||||||
|
"followers_count": 1,
|
||||||
|
"following_count": 1,
|
||||||
|
"subscribing_count": 0,
|
||||||
|
"statuses_count": 5,
|
||||||
|
"last_status_at": "2022-02-20",
|
||||||
|
"emojis": [],
|
||||||
|
"fields": [],
|
||||||
|
"other_settings": {
|
||||||
|
"birthday": "1993-07-03",
|
||||||
|
"location": "Texas, USA",
|
||||||
|
"noindex": false,
|
||||||
|
"hide_network": false,
|
||||||
|
"hide_statuses_count": false,
|
||||||
|
"hide_following_count": false,
|
||||||
|
"hide_followers_count": false,
|
||||||
|
"enable_reaction": true
|
||||||
|
}
|
||||||
|
}
|
BIN
app/soapbox/normalizers/__tests__/account-test.js
Normal file
BIN
app/soapbox/normalizers/__tests__/account-test.js
Normal file
Binary file not shown.
BIN
app/soapbox/normalizers/account.js
Normal file
BIN
app/soapbox/normalizers/account.js
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue