/// <summary> /// not sure what this is about but it is legacy /// TODO: reconsider when strategy for handling pingback in legacy site.config is decided. /// </summary> private PingbackInfo MaybeBuildPingbackInfo(Entry entry) { return(opts.EnableAutoPingBack && entry.IsPublic ? new PingbackInfo( SettingsUtils.GetPermaLinkUrl(entry.EntryId, opts.Root), entry.Title, entry.Description, opts.Title) : null); }
/// <summary> /// not sure what this is about but it is legacy /// TODO: reconsider when strategy for handling pingback in legacy site.config is decided. /// </summary> private PingbackInfo MaybeBuildPingbackInfo(Entry entry) { return(Pass(() => dasBlogSettings.SiteConfiguration.EnableAutoPingback, () => opts.EnableAutoPingBack) && entry.IsPublic ? new PingbackInfo( Pass(() => dasBlogSettings.GetPermaLinkUrl(entry.EntryId), () => SettingsUtils.GetPermaLinkUrl(entry.EntryId, opts.Root)), entry.Title, entry.Description, Pass(() => dasBlogSettings.SiteConfiguration.Title, () => opts.Title)) : null); }