about summary refs log tree commit diff
path: root/app/services/unblock_service.rb
diff options
context:
space:
mode:
authorNOGISAKA Sadata <ngsksdt@gmail.com>2019-02-24 22:28:36 +0900
committerEugen Rochko <eugen@zeonfederated.com>2019-02-24 14:28:36 +0100
commite050958794e436a61863cc62b0d7c54afb971ca4 (patch)
tree4fb1c20cd2f89f35c450c35a31661bf10b02451d /app/services/unblock_service.rb
parent57483f2ffb59aff3e4ab68f8d291e7c5e886dc77 (diff)
Skip some methods in BatchedRemoveStatusService when account is nil (#10095)
* Skip some methods in BatchedRemoveStatusService when account is nil

Sometimes `bin/tootctl accounts cull` fails with below error:

undefined method `followers_for_local_distribution' for nil:NilClass (NoMethodError)

This commit makes BatchedRemoveStatusService to skip below methods when
`account` is nil:

- unpush_from_home_timelines()
- unpush_from_list_timelines()
- batch_stream_entries()

* Fix rubocop error: Use `next` to skip iteration.
Diffstat (limited to 'app/services/unblock_service.rb')
0 files changed, 0 insertions, 0 deletions