Use Twitter API to fetch profile photos.

fixes #133
This commit is contained in:
softsimon
2020-10-16 16:29:54 +07:00
parent e7a7b45ad0
commit 15fdb69b96
6 changed files with 119 additions and 33 deletions

View File

@@ -22,7 +22,6 @@ export class AboutComponent implements OnInit {
donationObj: any;
sponsorsEnabled = env.SPONSORS_ENABLED;
sponsors = null;
bitcoinUrl: SafeUrl;
constructor(
private websocketService: WebsocketService,
@@ -63,8 +62,11 @@ export class AboutComponent implements OnInit {
.subscribe((response) => {
this.websocketService.trackDonation(response.id);
this.donationObj = response;
this.bitcoinUrl = this.sanitizer.bypassSecurityTrustUrl('bitcoin:' + this.donationObj.address + '?amount=' + this.donationObj.amount);
this.donationStatus = 3;
});
}
bypassSecurityTrustUrl(text: string): SafeUrl {
return this.sanitizer.bypassSecurityTrustUrl(text);
}
}