Commit 2ff9831f authored by Ujvari Gergely's avatar Ujvari Gergely

Fix for #525

For replies it populates the annotation.quote field with the parent's reply.
The userstream.coffee page will use this field if exists.
parent adf90838
get_quote = (annotation) ->
if annotation.quote? then return annotation.quote
if not 'target' in annotation then return ''
quote = '(Reply annotation)'
for target in annotation['target']
for selector in target['selector']
if selector['type'] is 'TextQuoteSelector'
quote = selector['exact'] + ' '
quote
class Stream
......
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