2023-04-21 03:03:02 +00:00
|
|
|
package sriracha
|
|
|
|
|
2023-04-30 03:17:56 +00:00
|
|
|
// ExtensionPost defines the interface for extensions that handle creating a post.
|
2023-04-21 03:03:02 +00:00
|
|
|
type ExtensionPost interface {
|
|
|
|
Extension
|
|
|
|
|
2023-04-30 03:17:56 +00:00
|
|
|
// Post is called when a new post is created. Extensions may modify the
|
|
|
|
// post and apply formatting or other operations on it. All text is
|
|
|
|
// initially HTML-escaped.
|
|
|
|
Post(post *Post) error
|
2023-04-21 03:03:02 +00:00
|
|
|
}
|