mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
Fix API upload
This commit is contained in:
parent
0f3c6674b3
commit
677ecc265c
1 changed files with 2 additions and 0 deletions
|
@ -41,6 +41,8 @@ defmodule PhilomenaWeb.Api.Json.ImageController do
|
|||
|
||||
case Images.create_image(attributes, image_params) do
|
||||
{:ok, %{image: image}} ->
|
||||
image = Repo.preload(image, tags: :aliases)
|
||||
|
||||
PhilomenaWeb.Endpoint.broadcast!(
|
||||
"firehose",
|
||||
"image:create",
|
||||
|
|
Loading…
Reference in a new issue