summaryrefslogtreecommitdiff
path: root/src/remote
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2020-02-01 07:16:52 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2020-02-01 07:16:52 +0900
commit7ed3448e13847f3ba807be1354e90c912fbefd9a (patch)
treea9d91176e5a95f90e2af570ae900641f651e77aa /src/remote
parentUpdate gulpfile.ts (diff)
downloadmisskey-7ed3448e13847f3ba807be1354e90c912fbefd9a.tar.gz
misskey-7ed3448e13847f3ba807be1354e90c912fbefd9a.tar.bz2
misskey-7ed3448e13847f3ba807be1354e90c912fbefd9a.zip
Resolve #1669
Diffstat (limited to 'src/remote')
-rw-r--r--src/remote/activitypub/models/person.ts9
-rw-r--r--src/remote/activitypub/renderer/person.ts39
2 files changed, 1 insertions, 47 deletions
diff --git a/src/remote/activitypub/models/person.ts b/src/remote/activitypub/models/person.ts
index 6fad553c91..f9ffa4d77a 100644
--- a/src/remote/activitypub/models/person.ts
+++ b/src/remote/activitypub/models/person.ts
@@ -306,7 +306,7 @@ export async function updatePerson(uri: string, resolver?: Resolver | null, hint
const emojiNames = emojis.map(emoji => emoji.name);
- const { fields, services } = analyzeAttachments(person.attachment || []);
+ const { fields } = analyzeAttachments(person.attachment || []);
const tags = extractHashtags(person.tag).map(tag => tag.toLowerCase()).splice(0, 32);
@@ -347,13 +347,6 @@ export async function updatePerson(uri: string, resolver?: Resolver | null, hint
url: person.url,
fields,
description: person.summary ? fromHtml(person.summary) : null,
- twitterUserId: services.twitter ? services.twitter.userId : null,
- twitterScreenName: services.twitter ? services.twitter.screenName : null,
- githubId: services.github ? services.github.id : null,
- githubLogin: services.github ? services.github.login : null,
- discordId: services.discord ? services.discord.id : null,
- discordUsername: services.discord ? services.discord.username : null,
- discordDiscriminator: services.discord ? services.discord.discriminator : null,
});
// ハッシュタグ更新
diff --git a/src/remote/activitypub/renderer/person.ts b/src/remote/activitypub/renderer/person.ts
index 07a0eeed42..af0e446ac1 100644
--- a/src/remote/activitypub/renderer/person.ts
+++ b/src/remote/activitypub/renderer/person.ts
@@ -39,45 +39,6 @@ export async function renderPerson(user: ILocalUser) {
}
}
- if (profile.twitter) {
- attachment.push({
- type: 'PropertyValue',
- name: 'Twitter',
- value: `<a href="https://twitter.com/intent/user?user_id=${profile.twitterUserId}" rel="me nofollow noopener" target="_blank"><span>@${profile.twitterScreenName}</span></a>`,
- identifier: {
- type: 'PropertyValue',
- name: 'misskey:authentication:twitter',
- value: `${profile.twitterUserId}@${profile.twitterScreenName}`
- }
- });
- }
-
- if (profile.github) {
- attachment.push({
- type: 'PropertyValue',
- name: 'GitHub',
- value: `<a href="https://github.com/${profile.githubLogin}" rel="me nofollow noopener" target="_blank"><span>@${profile.githubLogin}</span></a>`,
- identifier: {
- type: 'PropertyValue',
- name: 'misskey:authentication:github',
- value: `${profile.githubId}@${profile.githubLogin}`
- }
- });
- }
-
- if (profile.discord) {
- attachment.push({
- type: 'PropertyValue',
- name: 'Discord',
- value: `<a href="https://discordapp.com/users/${profile.discordId}" rel="me nofollow noopener" target="_blank"><span>${profile.discordUsername}#${profile.discordDiscriminator}</span></a>`,
- identifier: {
- type: 'PropertyValue',
- name: 'misskey:authentication:discord',
- value: `${profile.discordId}@${profile.discordUsername}#${profile.discordDiscriminator}`
- }
- });
- }
-
const emojis = await getEmojis(user.emojis);
const apemojis = emojis.map(emoji => renderEmoji(emoji));