philomena/lib/philomena/reports/attribution.ex
2019-12-08 12:45:37 -05:00

13 lines
No EOL
288 B
Elixir

defimpl Philomena.Attribution, for: Philomena.Reports.Report do
def object_identifier(report) do
to_string(report.id)
end
def best_user_identifier(report) do
to_string(report.user_id || report.fingerprint || report.ip)
end
def anonymous?(report) do
false
end
end