basic2

package module
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

Review Basic

Review the user's first post, and only after review will the post be visible to others.

Config

Just need to open the Review question and answer switch. After that, the user's first post will be reviewed by the administrator.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Info embed.FS

Functions

This section is empty.

Types

type Reviewer added in v1.0.7

type Reviewer struct {
	Config *ReviewerConfig
}

func (*Reviewer) ConfigFields added in v1.0.7

func (r *Reviewer) ConfigFields() []plugin.ConfigField

func (*Reviewer) ConfigReceiver added in v1.0.7

func (r *Reviewer) ConfigReceiver(config []byte) error

func (*Reviewer) Info added in v1.0.7

func (r *Reviewer) Info() plugin.Info

func (*Reviewer) Review added in v1.0.7

func (r *Reviewer) Review(content *plugin.ReviewContent) (result *plugin.ReviewResult)

type ReviewerConfig added in v1.0.7

type ReviewerConfig struct {
	PostAllNeedReview      bool   `json:"review_post_all"`
	PostNeedReview         bool   `json:"review_post"`
	PostEditNeedReview     bool   `json:"review_post_edited"`
	PostReviewKeywords     string `json:"review_post_keywords"`
	PostDisallowedKeywords string `json:"disallowed_keywords"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL