This commit is contained in:
syuilo 2024-10-20 14:45:16 +09:00
parent c1f3db02c1
commit 1593ced8ba
8 changed files with 24 additions and 8 deletions

View file

@ -495,6 +495,7 @@ export class ApRendererService {
summary: profile.description ? this.mfmService.toHtml(mfm.parse(profile.description)) : null,
_misskey_summary: profile.description,
_misskey_followedMessage: profile.followedMessage,
_misskey_signinRequiredForShowContents: user.signinRequiredForShowContents,
icon: avatar ? this.renderImage(avatar) : null,
image: banner ? this.renderImage(banner) : null,
tag,

View file

@ -555,6 +555,7 @@ const extension_context_definition = {
'_misskey_votes': 'misskey:_misskey_votes',
'_misskey_summary': 'misskey:_misskey_summary',
'_misskey_followedMessage': 'misskey:_misskey_followedMessage',
'_misskey_signinRequiredForShowContents': 'misskey:_misskey_signinRequiredForShowContents',
'isCat': 'misskey:isCat',
// vcard
vcard: 'http://www.w3.org/2006/vcard/ns#',

View file

@ -356,6 +356,7 @@ export class ApPersonService implements OnModuleInit {
tags,
isBot,
isCat: (person as any).isCat === true,
signinRequiredForShowContents: (person as any).signinRequiredForShowContents === true,
emojis,
})) as MiRemoteUser;

View file

@ -14,6 +14,7 @@ export interface IObject {
summary?: string;
_misskey_summary?: string;
_misskey_followedMessage?: string | null;
_misskey_signinRequiredForShowContents?: boolean;
published?: string;
cc?: ApObject;
to?: ApObject;