mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 04:27:59 +01:00
13 lines
259 B
Elixir
13 lines
259 B
Elixir
defimpl Philomena.Attribution, for: Philomena.Topics.Topic do
|
|
def object_identifier(topic) do
|
|
to_string(topic.id)
|
|
end
|
|
|
|
def best_user_identifier(topic) do
|
|
to_string(topic.user_id)
|
|
end
|
|
|
|
def anonymous?(topic) do
|
|
!!topic.anonymous
|
|
end
|
|
end
|