1
0
mirror of https://github.com/NicolasConstant/sengi synced 2025-02-07 15:38:42 +01:00

add auth on emoji fetch, fix #391

This commit is contained in:
Nicolas Constant 2023-04-23 15:09:34 -04:00
parent e14852e087
commit db6b37eef3
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688

View File

@ -520,7 +520,8 @@ export class MastodonService {
getCustomEmojis(account: AccountInfo): Promise<Emoji[]> {
let route = `https://${account.instance}${this.apiRoutes.getCustomEmojis}`;
return this.httpClient.get<Emoji[]>(route).toPromise();
const headers = new HttpHeaders({ 'Authorization': `Bearer ${account.token.access_token}` });
return this.httpClient.get<Emoji[]>(route, { headers: headers }).toPromise();
}
getScheduledStatuses(account: AccountInfo): Promise<ScheduledStatus[]> {