Commit 30d1e4bf authored by Randall Leeds's avatar Randall Leeds

Add user and created time client-side

Fixes #16.
parent 4039ba6d
......@@ -34,6 +34,11 @@ class Hypothesis extends Annotator
@plugins.Auth.withToken (token) =>
@plugins.Permissions.setUser token.userId
this.subscribe 'beforeAnnotationCreated', (annotation) =>
annotation.created = annotation.updated = (new Date()).toString()
annotation.user = @plugins.Permissions.options.userId(
@plugins.Permissions.user)
this
_setupWrapper: ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment