mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
delegate attribution correctly
This commit is contained in:
parent
0c976851ed
commit
8d08c42331
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue