fix(backend): 連合モードが「なし」の場合はactivity jsonへのリンクタグを省略するように (#16074)
* fix(backend): 連合モードが「なし」の場合はactivity jsonへのリンクタグを省略するように * Update Changelog * flip condition
This commit is contained in:
parent
8ad6ffc2b3
commit
c7318f5803
|
@ -50,6 +50,7 @@
|
||||||
- Fix: チャットルームが削除された場合・チャットルームから抜けた場合に、未読状態が残り続けることがあるのを修正
|
- Fix: チャットルームが削除された場合・チャットルームから抜けた場合に、未読状態が残り続けることがあるのを修正
|
||||||
- Fix: ユーザ除外アンテナをインポートできない問題を修正
|
- Fix: ユーザ除外アンテナをインポートできない問題を修正
|
||||||
- Fix: アンテナのセンシティブなチャンネルのノートを含むかどうかの情報がエクスポートされない問題を修正
|
- Fix: アンテナのセンシティブなチャンネルのノートを含むかどうかの情報がエクスポートされない問題を修正
|
||||||
|
- Fix: 連合モードが「なし」の場合に、生成されるHTML内のactivity jsonへのリンクタグを省略するように
|
||||||
|
|
||||||
|
|
||||||
## 2025.5.0
|
## 2025.5.0
|
||||||
|
|
|
@ -212,6 +212,7 @@ export class ClientServerService {
|
||||||
instanceUrl: this.config.url,
|
instanceUrl: this.config.url,
|
||||||
metaJson: htmlSafeJsonStringify(await this.metaEntityService.packDetailed(meta)),
|
metaJson: htmlSafeJsonStringify(await this.metaEntityService.packDetailed(meta)),
|
||||||
now: Date.now(),
|
now: Date.now(),
|
||||||
|
federationEnabled: this.meta.federation !== 'none',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,8 @@ block meta
|
||||||
if note.next
|
if note.next
|
||||||
link(rel='next' href=`${config.url}/notes/${note.next}`)
|
link(rel='next' href=`${config.url}/notes/${note.next}`)
|
||||||
|
|
||||||
if !user.host
|
if federationEnabled
|
||||||
link(rel='alternate' href=url type='application/activity+json')
|
if !user.host
|
||||||
if note.uri
|
link(rel='alternate' href=url type='application/activity+json')
|
||||||
link(rel='alternate' href=note.uri type='application/activity+json')
|
if note.uri
|
||||||
|
link(rel='alternate' href=note.uri type='application/activity+json')
|
||||||
|
|
|
@ -32,12 +32,13 @@ block meta
|
||||||
meta(name='twitter:creator' content=`@${profile.twitter.screenName}`)
|
meta(name='twitter:creator' content=`@${profile.twitter.screenName}`)
|
||||||
|
|
||||||
if !sub
|
if !sub
|
||||||
if !user.host
|
if federationEnabled
|
||||||
link(rel='alternate' href=`${config.url}/users/${user.id}` type='application/activity+json')
|
if !user.host
|
||||||
if user.uri
|
link(rel='alternate' href=`${config.url}/users/${user.id}` type='application/activity+json')
|
||||||
link(rel='alternate' href=user.uri type='application/activity+json')
|
if user.uri
|
||||||
if profile.url
|
link(rel='alternate' href=user.uri type='application/activity+json')
|
||||||
link(rel='alternate' href=profile.url type='text/html')
|
if profile.url
|
||||||
|
link(rel='alternate' href=profile.url type='text/html')
|
||||||
|
|
||||||
each m in me
|
each m in me
|
||||||
link(rel='me' href=`${m}`)
|
link(rel='me' href=`${m}`)
|
||||||
|
|
Loading…
Reference in New Issue