From 8d08c42331dd8d16f2af09cf0e4f1a94b83d9a95 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Thu, 5 Dec 2019 22:11:52 -0500 Subject: [PATCH] delegate attribution correctly --- lib/philomena/versions/attribution.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/philomena/versions/attribution.ex b/lib/philomena/versions/attribution.ex index da354094..b286fa77 100644 --- a/lib/philomena/versions/attribution.ex +++ b/lib/philomena/versions/attribution.ex @@ -1,10 +1,10 @@ defimpl Philomena.Attribution, for: Philomena.Versions.Version do def object_identifier(version) do - to_string(version.parent.id) + Philomena.Attribution.object_identifier(version.parent) end def best_user_identifier(version) do - to_string(version.user.id) + Philomena.Attribution.best_user_identifier(version.parent) end def anonymous?(version) do