mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-13 22:28:58 +09:00
lint fix (#3522)
This commit is contained in:
parent
d3d50b2f79
commit
008432e156
@ -22,21 +22,30 @@ export default async (user: ILocalUser) => {
|
|||||||
value: string,
|
value: string,
|
||||||
verified_at?: string
|
verified_at?: string
|
||||||
}[] = [];
|
}[] = [];
|
||||||
user.twitter && attachment.push({
|
|
||||||
type: 'PropertyValue',
|
if (user.twitter) {
|
||||||
name: 'Twitter',
|
attachment.push({
|
||||||
value: `<a href="https://twitter.com/intent/user?user_id=${user.twitter.userId}" rel="me nofollow noopener" target="_blank"><span>@${user.twitter.screenName}</span></a>`
|
type: 'PropertyValue',
|
||||||
});
|
name: 'Twitter',
|
||||||
user.github && attachment.push({
|
value: `<a href="https://twitter.com/intent/user?user_id=${user.twitter.userId}" rel="me nofollow noopener" target="_blank"><span>@${user.twitter.screenName}</span></a>`
|
||||||
type: 'PropertyValue',
|
});
|
||||||
name: 'GitHub',
|
}
|
||||||
value: `<a href="https://github.com/${user.github.login}" rel="me nofollow noopener" target="_blank"><span>@${user.github.login}</span></a>`
|
|
||||||
});
|
if (user.github) {
|
||||||
user.discord && attachment.push({
|
attachment.push({
|
||||||
type: 'PropertyValue',
|
type: 'PropertyValue',
|
||||||
name: 'Discord',
|
name: 'GitHub',
|
||||||
value: `<a href="https://discordapp.com/users/${user.discord.id}" rel="me nofollow noopener" target="_blank"><span>@${user.discord.username}#${user.discord.discriminator}</span></a>`
|
value: `<a href="https://github.com/${user.github.login}" rel="me nofollow noopener" target="_blank"><span>@${user.github.login}</span></a>`
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (user.discord) {
|
||||||
|
attachment.push({
|
||||||
|
type: 'PropertyValue',
|
||||||
|
name: 'Discord',
|
||||||
|
value: `<a href="https://discordapp.com/users/${user.discord.id}" rel="me nofollow noopener" target="_blank"><span>@${user.discord.username}#${user.discord.discriminator}</span></a>`
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
const emojis = await getEmojis(user.emojis);
|
const emojis = await getEmojis(user.emojis);
|
||||||
const apemojis = emojis.map(emoji => renderEmoji(emoji));
|
const apemojis = emojis.map(emoji => renderEmoji(emoji));
|
||||||
|
Loading…
Reference in New Issue
Block a user