This commit is contained in:
tamaina 2023-07-15 14:06:36 +00:00
parent da0804eb17
commit 76def0032e
2 changed files with 2 additions and 2 deletions

View file

@ -80,7 +80,7 @@ export class ApRendererService {
}
@bindThis
public renderAnnounce(object: string | IObject | null, note: Note): IAnnounce {
public renderAnnounce(object: string | IObject, note: Note): IAnnounce {
const attributedTo = this.userEntityService.genLocalUserUri(note.userId);
let to: string[] = [];

View file

@ -248,7 +248,7 @@ describe('ActivityPub', () => {
describe('Renderer', () => {
test('Render an announce with visibility: followers', () => {
rendererService.renderAnnounce(null, {
rendererService.renderAnnounce('hoge', {
createdAt: new Date(0),
visibility: 'followers',
} as Note);