Skip to content

Commit

Permalink
Note
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Mar 5, 2019
1 parent cc0296d commit 0b566af
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: 'Create',
type: 'Note',
[expiresAt && expiresAt < new Date() ? 'closed' : 'endTime']: expiresAt,
[multiple ? 'anyOf' : 'oneOf']: choices.map(({ text, votes }) => ({
type: 'Note',
Expand Down

0 comments on commit 0b566af

Please sign in to comment.