flip condition

This commit is contained in:
kakkokari-gtyih 2025-05-22 10:22:09 +09:00
parent d6aab12bfa
commit 2f78b7303e
3 changed files with 3 additions and 3 deletions

View File

@ -212,7 +212,7 @@ export class ClientServerService {
instanceUrl: this.config.url,
metaJson: htmlSafeJsonStringify(await this.metaEntityService.packDetailed(meta)),
now: Date.now(),
federationDisabled: this.meta.federation === 'none',
federationEnabled: this.meta.federation !== 'none',
};
}

View File

@ -55,7 +55,7 @@ block meta
if note.next
link(rel='next' href=`${config.url}/notes/${note.next}`)
if !federationDisabled
if federationEnabled
if !user.host
link(rel='alternate' href=url type='application/activity+json')
if note.uri

View File

@ -32,7 +32,7 @@ block meta
meta(name='twitter:creator' content=`@${profile.twitter.screenName}`)
if !sub
if !federationDisabled
if federationEnabled
if !user.host
link(rel='alternate' href=`${config.url}/users/${user.id}` type='application/activity+json')
if user.uri