implement attribution for topic

This commit is contained in:
byte[] 2019-11-11 12:44:29 -05:00
parent 4827115b90
commit 14d693e2c1

View file

@ -0,0 +1,9 @@
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
end