mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-22 22:15:12 +00:00
chore: lint says const happy
This commit is contained in:
parent
c6c6873984
commit
b107ff5a1f
2 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ export class ApiAccountMastodon {
|
||||||
public async verifyCredentials() {
|
public async verifyCredentials() {
|
||||||
try {
|
try {
|
||||||
const data = await this.client.verifyAccountCredentials();
|
const data = await this.client.verifyAccountCredentials();
|
||||||
let acct = data.data;
|
const acct = data.data;
|
||||||
acct.id = convertId(acct.id, IdType.MastodonId);
|
acct.id = convertId(acct.id, IdType.MastodonId);
|
||||||
acct.display_name = acct.display_name || acct.username;
|
acct.display_name = acct.display_name || acct.username;
|
||||||
acct.url = `${this.BASE_URL}/@${acct.url}`;
|
acct.url = `${this.BASE_URL}/@${acct.url}`;
|
||||||
|
|
|
@ -22,7 +22,7 @@ export class ApiNotifyMastodon {
|
||||||
const data = await this.client.getNotifications( convertTimelinesArgsId(toLimitToInt(this.request.query)) );
|
const data = await this.client.getNotifications( convertTimelinesArgsId(toLimitToInt(this.request.query)) );
|
||||||
const notifs = data.data;
|
const notifs = data.data;
|
||||||
const processed = notifs.map((n: Entity.Notification) => {
|
const processed = notifs.map((n: Entity.Notification) => {
|
||||||
let convertedn = convertNotification(n);
|
const convertedn = convertNotification(n);
|
||||||
if (convertedn.type !== 'follow' && convertedn.type !== 'follow_request') {
|
if (convertedn.type !== 'follow' && convertedn.type !== 'follow_request') {
|
||||||
if (convertedn.type === 'reaction') convertedn.type = 'favourite';
|
if (convertedn.type === 'reaction') convertedn.type = 'favourite';
|
||||||
return convertedn;
|
return convertedn;
|
||||||
|
|
Loading…
Reference in a new issue