route

package
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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetActorPost

func GetActorPost(ctx *fiber.Ctx, path string) error

func GetThemeCookie

func GetThemeCookie(c *fiber.Ctx) string

func ParseOutboxRequest

func ParseOutboxRequest(ctx *fiber.Ctx, actor activitypub.Actor) error

func TemplateFunctions

func TemplateFunctions(engine *html.Engine)

func WantToServeArchive

func WantToServeArchive(actorName string) (activitypub.Collection, bool, error)

func WantToServeCatalog

func WantToServeCatalog(actorName string) (activitypub.Collection, bool, error)

Types

type AdminPage

type AdminPage struct {
	Title         string
	Board         webfinger.Board
	Key           string
	Actor         string
	Boards        []webfinger.Board
	Following     []string
	Followers     []string
	Domain        string
	IsLocal       bool
	PostBlacklist []util.PostBlacklist
	AutoSubscribe bool
	RecentPosts   []activitypub.ObjectBase
	Instance      activitypub.Actor
	Meta          Meta

	Themes      *[]string
	ThemeCookie string
}

type Meta

type Meta struct {
	Title       string
	Description string
	Url         string
	Preview     string
}

type PageData

type PageData struct {
	Title             string
	PreferredUsername string
	Board             webfinger.Board
	Pages             []int
	CurrentPage       int
	TotalPage         int
	Boards            []webfinger.Board
	Posts             []activitypub.ObjectBase
	Key               string
	PostId            string
	Instance          activitypub.Actor
	ReturnTo          string
	NewsItems         []db.NewsItem
	BoardRemainer     []int
	Meta              Meta
	PostType          string

	Themes      *[]string
	ThemeCookie string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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