Pipeline: Add a side effects step after the transaction finishes
authorlain <lain@soykaf.club>
Fri, 5 Jun 2020 14:47:02 +0000 (16:47 +0200)
committerlain <lain@soykaf.club>
Fri, 5 Jun 2020 14:47:02 +0000 (16:47 +0200)
commit115d08a7542b92c5e1d889da41c0ee6837a1235e
tree9f1d3aa8a65f53d5a42b9ab64013c2d9a3296a19
parent65689ba9bd44e291fc626cce2bd5136b93a5da90
Pipeline: Add a side effects step after the transaction finishes

This is to run things like streaming notifications out, which will
sometimes need data that is created by the transaction, but is
streamed out asynchronously.
lib/pleroma/notification.ex
lib/pleroma/web/activity_pub/pipeline.ex
lib/pleroma/web/activity_pub/side_effects.ex
test/web/activity_pub/pipeline_test.exs
test/web/activity_pub/side_effects_test.exs
test/web/common_api/common_api_test.exs