@@ -195,6 +195,18 @@ private static Dictionary<string, string> SupportedMedia
195195 }
196196 }
197197
198+ private static string CommentHash
199+ {
200+ get
201+ {
202+ if ( BlogSettings . Instance . ModerationType == BlogSettings . Moderation . Disqus )
203+ return "#disqus_thread" ;
204+ if ( BlogSettings . Instance . ModerationType == BlogSettings . Moderation . Facebook )
205+ return "#facebook_thread" ;
206+ return "#comment" ;
207+ }
208+ }
209+
198210 #endregion
199211
200212 #region Public Methods
@@ -512,8 +524,7 @@ private static void WriteAtomEntry(XmlWriter writer, IPublishable publishable)
512524
513525 writer . WriteStartElement ( "link" ) ;
514526 writer . WriteAttributeString ( "rel" , "related" ) ;
515- writer . WriteAttributeString ( "href" , String . Concat ( publishable . AbsoluteLink . ToString ( ) ,
516- BlogSettings . Instance . ModerationType == BlogSettings . Moderation . Disqus ? "#disqus_thread" : "#comment" ) ) ;
527+ writer . WriteAttributeString ( "href" , String . Concat ( publishable . AbsoluteLink . ToString ( ) , CommentHash ) ) ;
517528 writer . WriteEndElement ( ) ;
518529
519530 // ------------------------------------------------------------
@@ -619,8 +630,8 @@ private static void WriteAtomEntry(XmlWriter writer, IPublishable publishable)
619630 "wfw" ,
620631 "comment" ,
621632 "http://wellformedweb.org/CommentAPI/" ,
622- String . Concat ( publishable . AbsoluteLink . ToString ( ) ,
623- BlogSettings . Instance . ModerationType == BlogSettings . Moderation . Disqus ? "#disqus_thread" : "#comment" ) ) ;
633+ String . Concat ( publishable . AbsoluteLink . ToString ( ) ,
634+ CommentHash ) ) ;
624635 writer . WriteElementString (
625636 "wfw" ,
626637 "commentRss" ,
@@ -713,7 +724,7 @@ private static void WriteRssItem(XmlWriter writer, IPublishable publishable)
713724 {
714725 writer . WriteElementString (
715726 "comments" , String . Concat ( publishable . AbsoluteLink . ToString ( ) ,
716- BlogSettings . Instance . ModerationType == BlogSettings . Moderation . Disqus ? "#disqus_thread" : "#comment" ) ) ;
727+ CommentHash ) ) ;
717728 }
718729
719730 writer . WriteElementString ( "guid" , GetPermaLink ( publishable ) . ToString ( ) ) ;
@@ -807,7 +818,7 @@ private static void WriteRssItem(XmlWriter writer, IPublishable publishable)
807818 "comment" ,
808819 "http://wellformedweb.org/CommentAPI/" ,
809820 String . Concat ( publishable . AbsoluteLink . ToString ( ) ,
810- BlogSettings . Instance . ModerationType == BlogSettings . Moderation . Disqus ? "#disqus_thread" : "#comment" ) ) ;
821+ CommentHash ) ) ;
811822 writer . WriteElementString (
812823 "wfw" ,
813824 "commentRss" ,
0 commit comments