Skip to content

dasBlogSettings should detect if Spam Questions are enabled #719

Closed
@poppastring

Description

@poppastring

Here is an example of the code:

!string.IsNullOrEmpty(dasBlogSettings.SiteConfiguration.CheesySpamQ) && !string.IsNullOrEmpty(dasBlogSettings.SiteConfiguration.CheesySpamA)
            && dasBlogSettings.SiteConfiguration.CheesySpamQ.Length > 0 && dasBlogSettings.SiteConfiguration.CheesySpamA.Length > 0)

One example to replace can be found here:
...\dasblog-core\source\DasBlog.Web.UI\Views\Shared_CommentAddPartial.cshtml

In general, these type of status checks should be Properties rather than methods.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions