mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 19:02:26 -05:00
Markdown Statuses (#116)
* parse markdown statuses if desired * add some preliminary docs for writing posts
This commit is contained in:
parent
e2757ae676
commit
ad0e26dc04
19 changed files with 306 additions and 87 deletions
|
|
@ -7,6 +7,7 @@ import (
|
|||
"github.com/superseriousbusiness/gotosocial/internal/db"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/gtserror"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/text"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/typeutils"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/visibility"
|
||||
)
|
||||
|
|
@ -40,6 +41,7 @@ type processor struct {
|
|||
config *config.Config
|
||||
db db.DB
|
||||
filter visibility.Filter
|
||||
formatter text.Formatter
|
||||
fromClientAPI chan gtsmodel.FromClientAPI
|
||||
log *logrus.Logger
|
||||
}
|
||||
|
|
@ -51,6 +53,7 @@ func New(db db.DB, tc typeutils.TypeConverter, config *config.Config, fromClient
|
|||
config: config,
|
||||
db: db,
|
||||
filter: visibility.NewFilter(db, log),
|
||||
formatter: text.NewFormatter(config, db, log),
|
||||
fromClientAPI: fromClientAPI,
|
||||
log: log,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue