mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-04 08:37:59 +01:00
13 lines
No EOL
288 B
Elixir
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 |