post

package
Version: v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const SaltTable = "" +
	"................................" +
	".............../0123456789ABCDEF" +
	"GABCDEFGHIJKLMNOPQRSTUVWXYZabcde" +
	"fabcdefghijklmnopqrstuvwxyz....." +
	"................................" +
	"................................" +
	"................................" +
	"................................"

Variables

This section is empty.

Functions

func CheckCaptcha

func CheckCaptcha(captcha string) (bool, error)
func ConvertHashLink(domain string, link string) string

func CreateNameTripCode

func CreateNameTripCode(ctx *fiber.Ctx) (string, string, error)

func GetCaptchaCode

func GetCaptchaCode(captcha string) string

func IsMediaBanned

func IsMediaBanned(f multipart.File) (bool, error)

func ObjectFromForm

func ObjectFromForm(ctx *fiber.Ctx, obj activitypub.ObjectBase) (activitypub.ObjectBase, error)

func ParseAttachment

func ParseAttachment(obj activitypub.ObjectBase, catalog bool) template.HTML

func ParseCommentForReplies

func ParseCommentForReplies(comment string, op string) ([]activitypub.ObjectBase, error)

func ParseCommentForReply

func ParseCommentForReply(comment string) (string, error)

func ParseCommentQuotes

func ParseCommentQuotes(content string) string

func ParseContent

func ParseContent(board activitypub.Actor, op string, content string, thread activitypub.ObjectBase, id string, _type string) (template.HTML, error)

func ParseLinkComments

func ParseLinkComments(board activitypub.Actor, op string, content string, thread activitypub.ObjectBase) (string, error)

func ParseLinkTitle

func ParseLinkTitle(actorName string, op string, content string) string

func ParseOptions

func ParseOptions(ctx *fiber.Ctx, obj activitypub.ObjectBase) activitypub.ObjectBase

func ParseTruncate

func ParseTruncate(content string, board activitypub.Actor, op string, id string) string

func ResizeAttachmentToPreview

func ResizeAttachmentToPreview() error

func SupportedMIMEType

func SupportedMIMEType(mime string) bool

func TripCode

func TripCode(pass string) (string, error)

func TripCodeConvert

func TripCodeConvert(str string) string

func TripCodeSecure

func TripCodeSecure(pass string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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