Skip to content

Commit

Permalink
createで送る
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Mar 5, 2019
1 parent 7103eb2 commit cc0296d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/remote/activitypub/renderer/note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default async function renderNote(note: INote, dive = true): Promise<any>
} : {};

const asPoll = note.poll ? {
type: 'Question',
type: 'Create',
[expiresAt && expiresAt < new Date() ? 'closed' : 'endTime']: expiresAt,
[multiple ? 'anyOf' : 'oneOf']: choices.map(({ text, votes }) => ({
type: 'Note',
Expand Down

0 comments on commit cc0296d

Please sign in to comment.