File tree 3 files changed +7
-6
lines changed
src/Sitecore.Modules.WeBlog
3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 31
31
</weblogProfanityFilter >
32
32
</pipelines >
33
33
<settings >
34
+ <!-- To use Akismet for spam detection provide an Akismet API key below and enable Akismet
35
+ in the blog settings
36
+ -->
37
+ <setting name =" WeBlog.Akismet.APIKey" value =" " />
38
+
34
39
<!-- WeBlog.CommentSubmitted.HandleLocally:
35
40
Default value: true
36
41
Specifies whether submitted commented should be handled by this instance.
Original file line number Diff line number Diff line change 120
120
-->
121
121
<setting name =" WeBlog.ShareThisPublisherID" value =" " />
122
122
123
- <!-- To use Akismet for spam detection provide an Akismet API key below and enable Akismet
124
- in the blog settings
125
- -->
126
- <setting name =" WeBlog.Akismet.APIKey" value =" " />
127
-
128
123
<!-- TemplateIDs:
129
124
Various templateIDs which are used in the business logic
130
125
-->
Original file line number Diff line number Diff line change @@ -56,7 +56,8 @@ public void Process(CreateCommentArgs args)
56
56
57
57
var version = FileVersionInfo . GetVersionInfo ( Assembly . GetExecutingAssembly ( ) . Location ) . FileVersion ;
58
58
59
- var url = _linkManager . GetAbsoluteItemUrl ( _blogManager . GetCurrentBlog ( ) ) ;
59
+ var blogItem = _blogManager . GetCurrentBlog ( args . CommentItem ) ;
60
+ var url = _linkManager . GetAbsoluteItemUrl ( blogItem ) ;
60
61
61
62
api . Init ( _commentSettings . AkismetAPIKey , url , "WeBlog/" + version ) ;
62
63
You can’t perform that action at this time.
0 commit comments