]> cat aescling's git repositories - mastodon.git/commit
Fix scheduled toot with media immediately creating a toot (#9894)
authorThibG <thib@sitedethib.com>
Mon, 21 Jan 2019 19:03:04 +0000 (20:03 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 21 Jan 2019 19:03:04 +0000 (20:03 +0100)
commit061feb63ed852acb5d70e2678c9e63425e6ca71b
tree8526667c66959311b262405619771cad328a3aa3
parentdd8a00a3ccf4d73794ef110f8ca63955fa24c97a
Fix scheduled toot with media immediately creating a toot (#9894)

* Add test for not persisting status when attaching media to scheduled toot

* Prevent status used for validation from being persisted to the database

Fixes #9893

Thanks to tateisu for the help investigating this.
app/services/post_status_service.rb
spec/services/post_status_service_spec.rb