Publish pinned notes (#2731)

This commit is contained in:
MeiMei
2018-09-18 13:08:27 +09:00
committed by syuilo
parent bec48319ec
commit 11496d887e
9 changed files with 135 additions and 2 deletions

View File

@ -13,6 +13,7 @@ import renderPerson from '../remote/activitypub/renderer/person';
import Outbox, { packActivity } from './activitypub/outbox';
import Followers from './activitypub/followers';
import Following from './activitypub/following';
import Featured from './activitypub/featured';
// Init router
const router = new Router();
@ -102,6 +103,9 @@ router.get('/users/:user/followers', Followers);
// following
router.get('/users/:user/following', Following);
// featured
router.get('/users/:user/collections/featured', Featured);
// publickey
router.get('/users/:user/publickey', async ctx => {
const userId = new mongo.ObjectID(ctx.params.user);