diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2019-07-20 03:20:06 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-07-20 03:20:06 +0900 |
| commit | f1ab918ecd3bfe9ac5ceee7e79586645844d9623 (patch) | |
| tree | de9905df159d9673f37b0fc07c9b82d9507948c0 /src/server | |
| parent | Merge branch 'develop' of https://github.com/syuilo/misskey into develop (diff) | |
| download | sharkey-f1ab918ecd3bfe9ac5ceee7e79586645844d9623.tar.gz sharkey-f1ab918ecd3bfe9ac5ceee7e79586645844d9623.tar.bz2 sharkey-f1ab918ecd3bfe9ac5ceee7e79586645844d9623.zip | |
Fix question (#5197)
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/activitypub.ts | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/server/activitypub.ts b/src/server/activitypub.ts index 12fccbfa7d..0f1373d78f 100644 --- a/src/server/activitypub.ts +++ b/src/server/activitypub.ts @@ -109,28 +109,6 @@ router.get('/notes/:note/activity', async ctx => { setResponseType(ctx); }); -// question -router.get('/questions/:question', async (ctx, next) => { - const pollNote = await Notes.findOne({ - id: ctx.params.question, - userHost: null, - visibility: In(['public', 'home']), - localOnly: false, - hasPoll: true - }); - - if (pollNote == null) { - ctx.status = 404; - return; - } - - const user = await Users.findOne(pollNote.userId).then(ensure); - const poll = await Polls.findOne({ noteId: pollNote.id }).then(ensure); - - ctx.body = renderActivity(await renderQuestion(user as ILocalUser, pollNote, poll)); - setResponseType(ctx); -}); - // outbox router.get('/users/:user/outbox', Outbox); |