Skip to content

Commit

Permalink
Merge pull request #223 from CaptainFact/chore/moderation-nb-flags
Browse files Browse the repository at this point in the history
Moderation: Reduce the number of flags to report to 1
  • Loading branch information
Betree authored Apr 13, 2020
2 parents 17cd0c2 + 7c0051f commit f74dff6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/cf/lib/moderation/moderation.ex
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ defmodule CF.Moderation do
alias CF.Accounts.UserPermissions

@nb_flags_to_report %{
{:create, :comment} => 3
{:create, :comment} => 1
}

@doc """
Expand All @@ -38,7 +38,7 @@ defmodule CF.Moderation do
## Examples
iex> CF.Moderation.nb_flags_to_report(:create, :comment)
3
1
"""
@spec nb_flags_to_report(atom(), atom()) :: integer()
def nb_flags_to_report(action, entity) when is_atom(action) and is_atom(entity),
Expand Down

0 comments on commit f74dff6

Please sign in to comment.