mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 04:27:59 +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
|
defimpl Philomena.Attribution, for: Philomena.Versions.Version do
|
||||||
def object_identifier(version) do
|
def object_identifier(version) do
|
||||||
to_string(version.parent.id)
|
Philomena.Attribution.object_identifier(version.parent)
|
||||||
end
|
end
|
||||||
|
|
||||||
def best_user_identifier(version) do
|
def best_user_identifier(version) do
|
||||||
to_string(version.user.id)
|
Philomena.Attribution.best_user_identifier(version.parent)
|
||||||
end
|
end
|
||||||
|
|
||||||
def anonymous?(version) do
|
def anonymous?(version) do
|
||||||
|
|
Loading…
Reference in a new issue