mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
feat: shared inbox
This commit is contained in:
@@ -150,6 +150,7 @@ Mocks.actors.user = async (uid) => {
|
||||
following: `${nconf.get('url')}/uid/${uid}/following`,
|
||||
inbox: `${nconf.get('url')}/uid/${uid}/inbox`,
|
||||
outbox: `${nconf.get('url')}/uid/${uid}/outbox`,
|
||||
sharedInbox: `${nconf.get('url')}/inbox`,
|
||||
|
||||
type: 'Person',
|
||||
name,
|
||||
@@ -188,6 +189,7 @@ Mocks.actors.category = async (cid) => {
|
||||
// following: ,
|
||||
inbox: `${nconf.get('url')}/category/${cid}/inbox`,
|
||||
outbox: `${nconf.get('url')}/category/${cid}/outbox`,
|
||||
sharedInbox: `${nconf.get('url')}/inbox`,
|
||||
|
||||
type: 'Group',
|
||||
name,
|
||||
|
||||
@@ -18,6 +18,7 @@ module.exports = function (app, middleware, controllers) {
|
||||
];
|
||||
|
||||
app.get('/actor', middlewares, controllers.activitypub.actors.application);
|
||||
app.post('/inbox', [...middlewares, middleware.activitypub.validate], controllers.activitypub.postInbox);
|
||||
|
||||
app.get('/uid/:uid', [...middlewares, middleware.assert.user], controllers.activitypub.actors.user);
|
||||
app.get('/user/:userslug', [...middlewares, middleware.assert.user, middleware.exposeUid], controllers.activitypub.actors.userBySlug);
|
||||
|
||||
Reference in New Issue
Block a user