This repository was archived by the owner on Feb 5, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ interface Profile {
50
50
components: { ImgHolder , Button , FollowerCard },
51
51
})
52
52
export default class Followers extends Vue {
53
- public followerList: Array <Object > = [];
53
+ public followerList: Array <Profile > = [];
54
54
public rss3Profile: Profile = {
55
55
avatar: config .defaultAvatar ,
56
56
username: ' ' ,
@@ -85,11 +85,17 @@ export default class Followers extends Vue {
85
85
this .followerList .push ({
86
86
avatar: profile .avatar ?.[0 ] || config .defaultAvatar ,
87
87
username: profile .name || ' ' ,
88
+ bio: profile .bio || ' ' ,
88
89
address: item ,
89
90
displayAddress: this .filter (item ),
90
- rns: ( await RNSUtils . addr2Name ( item )). toString (). replace ( ' .pass3.me ' , ' ' ) ,
91
+ rns: ' ' ,
91
92
});
92
93
}
94
+ setTimeout (async () => {
95
+ for (const item of this .followerList ) {
96
+ item .rns = (await RNSUtils .addr2Name (item .address )).toString ().replace (' .pass3.me' , ' ' );
97
+ }
98
+ });
93
99
}
94
100
}
95
101
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ interface Profile {
50
50
components: { ImgHolder , Button , FollowerCard },
51
51
})
52
52
export default class Followings extends Vue {
53
- public followingList: Array <Object > = [];
53
+ public followingList: Array <Profile > = [];
54
54
public rss3Profile: Profile = {
55
55
avatar: config .defaultAvatar ,
56
56
username: ' ' ,
@@ -85,11 +85,17 @@ export default class Followings extends Vue {
85
85
this .followingList .push ({
86
86
avatar: profile ?.avatar ?.[0 ] || config .defaultAvatar ,
87
87
username: profile ?.name || ' ' ,
88
+ bio: profile .bio || ' ' ,
88
89
address: item ,
89
90
displayAddress: this .filter (item ),
90
- rns: ( await RNSUtils . addr2Name ( item )). toString (). replace ( ' .pass3.me ' , ' ' ) ,
91
+ rns: ' ' ,
91
92
});
92
93
}
94
+ setTimeout (async () => {
95
+ for (const item of this .followingList ) {
96
+ item .rns = (await RNSUtils .addr2Name (item .address )).toString ().replace (' .pass3.me' , ' ' );
97
+ }
98
+ });
93
99
}
94
100
}
95
101
You can’t perform that action at this time.
0 commit comments