mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-02-05 04:47:04 +09:00
?
This commit is contained in:
parent
da0804eb17
commit
76def0032e
@ -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 New Issue
Block a user