Add polls

Port front-end parts of 230a012f00 to glitch-soc
This commit is contained in:
Eugen Rochko
2019-03-03 22:18:23 +01:00
committed by Thibaut Girka
parent 0d19fcc2fb
commit 8d70a8a19b
13 changed files with 355 additions and 8 deletions

View File

@ -43,6 +43,10 @@ export function normalizeStatus(status, normalOldStatus) {
normalStatus.reblog = status.reblog.id;
}
if (status.poll && status.poll.id) {
normalStatus.poll = status.poll.id;
}
// Only calculate these values when status first encountered
// Otherwise keep the ones already in the reducer
if (normalOldStatus) {