Ejemplo n.º 1
0
        private void addFeedInfo(ForumTopic data)
        {
            String lnkPost = alink.ToAppData(data);

            String post = string.Format("<a href=\"{0}\">{1}</a>", lnkPost, data.Title);

            Dictionary <string, object> dic = new Dictionary <string, object>();

            dic.Add("topic", post);
            String templateData = Json.ToString(dic);

            TemplateBundle tplBundle = TemplateBundle.GetForumTopicTemplateBundle();

            new FeedService().publishUserAction(data.Creator, typeof(ForumTopic).FullName, tplBundle.Id, templateData, "", data.Ip);
        }