mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-20 22:47:59 +01:00
13 lines
290 B
Elixir
13 lines
290 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
|