diff --git a/js/controller/ActivityController.js b/js/controller/ActivityController.js index 0870170b4..30a786432 100644 --- a/js/controller/ActivityController.js +++ b/js/controller/ActivityController.js @@ -64,6 +64,23 @@ class ActivityController { this.activityservice.subscribe(this.$scope, function() { self.$scope.$apply(); }); + + if (typeof OCA.Activity.Templates !== 'undefined') { + OCA.Activity.Templates.userLocal = Handlebars.template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { + var helper; + // Compiled handlesbars template + // ' {{ name }}'; + return " " + + container.escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : {},{"name":"name","hash":{},"data":data}) : helper))) + + ""; + },"useData":true}); + } else { + OCA.Activity.RichObjectStringParser._userLocalTemplate = ' {{ name }}'; + } } applyAtWho($target) { @@ -263,23 +280,6 @@ class ActivityController { } parseMessage(subject, parameters) { - if (typeof OCA.Activity.Templates !== 'undefined') { - OCA.Activity.Templates.userLocal = {"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { - var helper; - // Compiled handlesbars template - // ' {{ name }}'; - return " " - + container.escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : {},{"name":"name","hash":{},"data":data}) : helper))) - + ""; - },"useData":true}; - } else { - OCA.Activity.RichObjectStringParser._userLocalTemplate = ' {{ name }}'; - } - return OCA.Activity.RichObjectStringParser.parseMessage(subject, parameters); }