?
This commit is contained in:
parent
da0804eb17
commit
76def0032e
2 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@ export class ApRendererService {
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@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);
|
const attributedTo = this.userEntityService.genLocalUserUri(note.userId);
|
||||||
|
|
||||||
let to: string[] = [];
|
let to: string[] = [];
|
||||||
|
|
|
@ -248,7 +248,7 @@ describe('ActivityPub', () => {
|
||||||
|
|
||||||
describe('Renderer', () => {
|
describe('Renderer', () => {
|
||||||
test('Render an announce with visibility: followers', () => {
|
test('Render an announce with visibility: followers', () => {
|
||||||
rendererService.renderAnnounce(null, {
|
rendererService.renderAnnounce('hoge', {
|
||||||
createdAt: new Date(0),
|
createdAt: new Date(0),
|
||||||
visibility: 'followers',
|
visibility: 'followers',
|
||||||
} as Note);
|
} as Note);
|
||||||
|
|
Loading…
Reference in a new issue