initial profile implementation!
This commit is contained in:
parent
667b11f2f4
commit
449a11ee55
14 changed files with 212 additions and 57 deletions
|
@ -27,7 +27,12 @@ export function parseAccount(data) {
|
|||
account.username = data.username;
|
||||
account.name = account.nickname || account.username;
|
||||
account.avatar_url = data.avatar;
|
||||
account.banner_url = data.header;
|
||||
account.url = data.url;
|
||||
account.followers_count = data.followers_count;
|
||||
account.following_count = data.following_count;
|
||||
account.posts_count = data.statuses_count;
|
||||
account.bio = data.note;
|
||||
|
||||
if (data.acct.includes('@'))
|
||||
account.host = data.acct.split('@')[1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue