]> cat aescling's git repositories - mastodon.git/commit
Fix #2402 - Add Idempotency-Key header to PostStatusService that prevents (#2419)
authorEugen Rochko <eugen@zeonfederated.com>
Tue, 25 Apr 2017 13:04:49 +0000 (15:04 +0200)
committerGitHub <noreply@github.com>
Tue, 25 Apr 2017 13:04:49 +0000 (15:04 +0200)
commit8b5179d006a07cf759e751e9d883bfe472cee868
treee3ea9299e7a99c55b62b4ebcac1749304f6f54c0
parent3ea5b948a4cee9ea5a1e229f567974c323947ef5
Fix #2402 - Add Idempotency-Key header to PostStatusService that prevents (#2419)

duplicates. Web UI regenerates UUID for that header every time the compose
form is changed or successfully submitted

Also, fix Farsi i18n overwriting the English one
app/assets/javascripts/components/actions/compose.jsx
app/assets/javascripts/components/reducers/compose.jsx
app/assets/javascripts/components/uuid.jsx [new file with mode: 0644]
app/controllers/api/v1/statuses_controller.rb
app/services/post_status_service.rb
config/locales/simple_form.fa.yml
spec/services/post_status_service_spec.rb