Commit 9132710b authored by gergely-ujvari's avatar gergely-ujvari

Fix for setting up the initUpdater in the AppController

In the previous implementation we did a really unnecessary string conversion.

This solution is shorter and cleaner.
It does fix #1065 however it does not solve the underlying discussion about the document plugins unencoding.
parent 21d3fe37
......@@ -461,14 +461,11 @@ class App
$scope.initUpdater = ->
$scope.new_updates = 0
# Collect all uris we should watch
uris = (e for e of annotator.plugins.Store.entities).join ','
filter =
streamfilter
.setPastDataNone()
.setMatchPolicyIncludeAny()
.setClausesParse('uri:[' + uris)
.addClause('uri', 'one_of', Object.keys(annotator.plugins.Store.entities))
.getFilter()
streamerURI = baseURI.replace /\/\w+(\??[^\/]*)\/$/, '/__streamer__'
......
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