ActivityPub Outboxの修正とactivity idのURLを実装 (#2662)
* Fix Outbox structure * Implement activity endpoint * Use in instead of or * Use in, addition
This commit is contained in:
parent
2824d8a5b6
commit
ef62497777
3 changed files with 37 additions and 14 deletions
|
|
@ -5,7 +5,7 @@ export default (object: any, note: INote) => {
|
|||
const attributedTo = `${config.url}/users/${note.userId}`;
|
||||
|
||||
return {
|
||||
id: `${config.url}/notes/${note._id}`,
|
||||
id: `${config.url}/notes/${note._id}/activity`,
|
||||
actor: `${config.url}/users/${note.userId}`,
|
||||
type: 'Announce',
|
||||
published: note.createdAt.toISOString(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue