mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-27 20:23:31 -06:00
[feature] Web profile pages for accounts (#449)
* add default avatars * allow webModule to error * return errWithCode from account get * add AccountGetLocalByUsername * check nil requesting account * add timestampShort function for just month/year * move loading logic to New + add default avatars * add profile page view * update swagger docs * add excludeReblogs to GetAccountStatuses * ignore casing when selecting local account by username * appropriate redirects * css fiddling * add 'about' heading * adjust thread page to work with routing * return AP representation if requested + authorized * simplify auth check * go fmt * golangci-lint ignore math/rand
This commit is contained in:
parent
a7e9dee33d
commit
26683b3d49
33 changed files with 1484 additions and 88 deletions
|
|
@ -95,6 +95,12 @@ var Start action.GTSAction = func(ctx context.Context) error {
|
|||
return fmt.Errorf("error creating oidc idp: %s", err)
|
||||
}
|
||||
|
||||
// build web module
|
||||
webModule, err := web.New(processor)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error creating web module: %s", err)
|
||||
}
|
||||
|
||||
// build client api modules
|
||||
authModule := auth.New(dbService, oauthServer, idp)
|
||||
accountModule := account.New(processor)
|
||||
|
|
@ -103,7 +109,6 @@ var Start action.GTSAction = func(ctx context.Context) error {
|
|||
followRequestsModule := followrequest.New(processor)
|
||||
webfingerModule := webfinger.New(processor)
|
||||
nodeInfoModule := nodeinfo.New(processor)
|
||||
webBaseModule := web.New(processor)
|
||||
usersModule := user.New(processor)
|
||||
timelineModule := timeline.New(processor)
|
||||
notificationModule := notification.New(processor)
|
||||
|
|
@ -126,8 +131,10 @@ var Start action.GTSAction = func(ctx context.Context) error {
|
|||
securityModule,
|
||||
authModule,
|
||||
|
||||
// now the web module
|
||||
webModule,
|
||||
|
||||
// now everything else
|
||||
webBaseModule,
|
||||
accountModule,
|
||||
instanceModule,
|
||||
appsModule,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue