mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 22:27:59 +01:00
mix format
This commit is contained in:
parent
485d8be3b3
commit
35ba4087fa
1 changed files with 3 additions and 3 deletions
|
@ -178,9 +178,9 @@ defmodule Philomena.Tags do
|
||||||
|
|
||||||
def alias_tag(%Tag{} = tag, attrs) do
|
def alias_tag(%Tag{} = tag, attrs) do
|
||||||
target_tag = Repo.get_by!(Tag, name: attrs["target_tag"])
|
target_tag = Repo.get_by!(Tag, name: attrs["target_tag"])
|
||||||
|
|
||||||
if(tag.id == target_tag.id) do
|
if tag.id == target_tag.id do
|
||||||
tag
|
tag
|
||||||
else
|
else
|
||||||
filters_hidden =
|
filters_hidden =
|
||||||
where(Filter, [f], fragment("? @> ARRAY[?]::integer[]", f.hidden_tag_ids, ^tag.id))
|
where(Filter, [f], fragment("? @> ARRAY[?]::integer[]", f.hidden_tag_ids, ^tag.id))
|
||||||
|
|
Loading…
Reference in a new issue