Status posting Idempotency
- Jul 16, 2020
-
-
Shpuld Shpludson authored
-
Shpuld Shpludson authored
-
- Jul 15, 2020
-
-
Shpuld Shpludson authored89a677f5
-
Every time the currently composed status changes it updates the idempotency key with a timestamp, so it stays the same if the post status request fails, but changes every time user willingly changes the content in any way or the form is cleared after successful posting. Server won't let through statuses with the same idempotency key so this eliminates double posts when user thinks a status didn't go through and hits submit again without changes.