mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 14:17:59 +01:00
Exclude contacted artist links from open link count
This commit is contained in:
parent
b513e66578
commit
6fa7fb88c5
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ defmodule Philomena.ArtistLinks do
|
|||
def count_artist_links(user) do
|
||||
if Canada.Can.can?(user, :index, %ArtistLink{}) do
|
||||
ArtistLink
|
||||
|> where([ul], ul.aasm_state in ^["unverified", "link_verified", "contacted"])
|
||||
|> where([ul], ul.aasm_state in ^["unverified", "link_verified"])
|
||||
|> Repo.aggregate(:count, :id)
|
||||
else
|
||||
nil
|
||||
|
|
Loading…
Reference in a new issue