diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2020-04-03 22:51:38 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-03 22:51:38 +0900 |
| commit | 99fc77b6787bf16e772d46493067de75ea219bb7 (patch) | |
| tree | 25c4ce00f3b827805f4fa36efc529abcc7735a47 /src/remote/activitypub/renderer | |
| parent | APIリファレンスのカテゴリ処理の修正 (#6218) (diff) | |
| download | sharkey-99fc77b6787bf16e772d46493067de75ea219bb7.tar.gz sharkey-99fc77b6787bf16e772d46493067de75ea219bb7.tar.bz2 sharkey-99fc77b6787bf16e772d46493067de75ea219bb7.zip | |
APメンションはaudienceじゃなくてtagを参照するなど (#6128)
* APメンションはaudienceじゃなくてtagを参照するなど
* AP/tag/Mentionではurlじゃなくてuriを提示する
* createPersonでaliasが入力された場合に対応
* AP HTMLパースでMention/Hashtag判定にtagを使うように
* fix
* indent
* use hashtag name
* fix
* URLエンコード不要だったら<>を使わないの条件が消えたたのを修正
Diffstat (limited to 'src/remote/activitypub/renderer')
| -rw-r--r-- | src/remote/activitypub/renderer/mention.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remote/activitypub/renderer/mention.ts b/src/remote/activitypub/renderer/mention.ts index 889be5d85d..3b5e8f27af 100644 --- a/src/remote/activitypub/renderer/mention.ts +++ b/src/remote/activitypub/renderer/mention.ts @@ -4,6 +4,6 @@ import { Users } from '../../../models'; export default (mention: User) => ({ type: 'Mention', - href: Users.isRemoteUser(mention) ? mention.uri : `${config.url}/@${(mention as ILocalUser).username}`, + href: Users.isRemoteUser(mention) ? mention.uri : `${config.url}/users/${(mention as ILocalUser).id}`, name: Users.isRemoteUser(mention) ? `@${mention.username}@${mention.host}` : `@${(mention as ILocalUser).username}`, }); |