mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 06:02:26 -05:00
[feature] Parse instance descriptors as markdown, show T&C on /about (#2481)
* [feature] Parse instance descriptors as markdown, show T&C on /about * lint * remove unnecessary nullzero tags
This commit is contained in:
parent
511ad97fe7
commit
d5e3996a18
23 changed files with 885 additions and 515 deletions
|
|
@ -21,6 +21,7 @@ import (
|
|||
"github.com/superseriousbusiness/gotosocial/internal/cleaner"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/email"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/federation"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
|
||||
mm "github.com/superseriousbusiness/gotosocial/internal/media"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/oauth"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/processing/account"
|
||||
|
|
@ -39,6 +40,7 @@ import (
|
|||
"github.com/superseriousbusiness/gotosocial/internal/processing/user"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/processing/workers"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/state"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/text"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/typeutils"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/visibility"
|
||||
)
|
||||
|
|
@ -55,6 +57,13 @@ type Processor struct {
|
|||
oauthServer oauth.Server
|
||||
state *state.State
|
||||
|
||||
/*
|
||||
Required for instance description / terms updating.
|
||||
*/
|
||||
|
||||
formatter *text.Formatter
|
||||
parseMentionFunc gtsmodel.ParseMentionFunc
|
||||
|
||||
/*
|
||||
SUB-PROCESSORS
|
||||
*/
|
||||
|
|
@ -147,9 +156,11 @@ func NewProcessor(
|
|||
)
|
||||
|
||||
processor := &Processor{
|
||||
converter: converter,
|
||||
oauthServer: oauthServer,
|
||||
state: state,
|
||||
converter: converter,
|
||||
oauthServer: oauthServer,
|
||||
state: state,
|
||||
formatter: text.NewFormatter(state.DB),
|
||||
parseMentionFunc: parseMentionFunc,
|
||||
}
|
||||
|
||||
// Instantiate sub processors.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue