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:
parent
e14852e087
commit
db6b37eef3
@ -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[]> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user