mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-01 03:46:44 +01:00
ensure comments are reindexed after image changes state
This commit is contained in:
parent
ccc788a9da
commit
6670b050a1
1 changed files with 3 additions and 0 deletions
|
@ -426,6 +426,7 @@ defmodule Philomena.Images do
|
||||||
|> case do
|
|> case do
|
||||||
{:ok, result} ->
|
{:ok, result} ->
|
||||||
reindex_image(duplicate_of_image)
|
reindex_image(duplicate_of_image)
|
||||||
|
Comments.reindex_comments(duplicate_of_image)
|
||||||
|
|
||||||
{:ok, result}
|
{:ok, result}
|
||||||
|
|
||||||
|
@ -464,6 +465,7 @@ defmodule Philomena.Images do
|
||||||
{:ok, %{image: image, tags: tags, reports: {_count, reports}} = result} ->
|
{:ok, %{image: image, tags: tags, reports: {_count, reports}} = result} ->
|
||||||
Hider.hide_thumbnails(image, image.hidden_image_key)
|
Hider.hide_thumbnails(image, image.hidden_image_key)
|
||||||
|
|
||||||
|
Comments.reindex_comments(image)
|
||||||
Reports.reindex_reports(reports)
|
Reports.reindex_reports(reports)
|
||||||
Tags.reindex_tags(tags)
|
Tags.reindex_tags(tags)
|
||||||
reindex_image(image)
|
reindex_image(image)
|
||||||
|
@ -514,6 +516,7 @@ defmodule Philomena.Images do
|
||||||
Hider.unhide_thumbnails(image, key)
|
Hider.unhide_thumbnails(image, key)
|
||||||
|
|
||||||
reindex_image(image)
|
reindex_image(image)
|
||||||
|
Comments.reindex_comments(image)
|
||||||
Tags.reindex_tags(tags)
|
Tags.reindex_tags(tags)
|
||||||
|
|
||||||
{:ok, image}
|
{:ok, image}
|
||||||
|
|
Loading…
Reference in a new issue