mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
create auto subscription on image upload
This commit is contained in:
parent
9db79fe62b
commit
1dab37ed58
1 changed files with 3 additions and 0 deletions
|
@ -69,6 +69,9 @@ defmodule Philomena.Images do
|
||||||
|
|
||||||
{:ok, count}
|
{:ok, count}
|
||||||
end)
|
end)
|
||||||
|
|> Multi.run(:subscribe, fn _repo, %{image: image} ->
|
||||||
|
create_subscription(image, attribution[:user])
|
||||||
|
end)
|
||||||
|> Multi.run(:after, fn _repo, %{image: image} ->
|
|> Multi.run(:after, fn _repo, %{image: image} ->
|
||||||
Processors.after_insert(image)
|
Processors.after_insert(image)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue