Commit Graph

3 Commits (795bac44fd0191a7927e09337c9e13718af56dc1)

Author SHA1 Message Date
Akihiko Odaki 55fd55714a Raise Mastodon::RaceConditionError if Redis lock failed ()
An explicit error allows user agents to know the error and Sidekiq to
retry.
Eugen Rochko 41e6c8b151 Fix incomplete account records being read ()
* Fix incomplete account records being read

- Put account processing into redis lock
- Do not save until record is complete

* Fix spaces
Eugen Rochko 54edb4b853 When accessing uncached media attachment, redownload it ()
* When accessing uncached media attachment, redownload it

* Prevent re-download of rejected media