diff options
author | 2023-02-22 16:05:26 +0100 | |
---|---|---|
committer | 2023-02-22 16:05:26 +0100 | |
commit | b6fbdc66c1ce1ec61ebfb6fcc0351ea627a1d288 (patch) | |
tree | c79d1107375597ab8a79045c80dd62dc95a204e7 /internal/web/profile.go | |
parent | [bugfix] Remove initial storage cleanup (#1545) (diff) | |
download | gotosocial-b6fbdc66c1ce1ec61ebfb6fcc0351ea627a1d288.tar.xz |
[chore] Deinterface processor and subprocessors (#1501)
* [chore] Deinterface processor and subprocessors
* expose subprocessors via function calls
* missing license header
Diffstat (limited to 'internal/web/profile.go')
-rw-r--r-- | internal/web/profile.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/web/profile.go b/internal/web/profile.go index 482e5caa7..2319e5dc9 100644 --- a/internal/web/profile.go +++ b/internal/web/profile.go @@ -66,7 +66,7 @@ func (m *Module) profileGETHandler(c *gin.Context) { return instance, nil } - account, errWithCode := m.processor.AccountGetLocalByUsername(ctx, authed, username) + account, errWithCode := m.processor.Account().GetLocalByUsername(ctx, authed.Account, username) if errWithCode != nil { apiutil.ErrorHandler(c, errWithCode, instanceGet) return @@ -102,7 +102,7 @@ func (m *Module) profileGETHandler(c *gin.Context) { showBackToTop = true } - statusResp, errWithCode := m.processor.AccountWebStatusesGet(ctx, account.ID, maxStatusID) + statusResp, errWithCode := m.processor.Account().WebStatusesGet(ctx, account.ID, maxStatusID) if errWithCode != nil { apiutil.ErrorHandler(c, errWithCode, instanceGet) return @@ -142,7 +142,7 @@ func (m *Module) returnAPProfile(ctx context.Context, c *gin.Context, username s ctx = context.WithValue(ctx, ap.ContextRequestingPublicKeySignature, signature) } - user, errWithCode := m.processor.GetFediUser(ctx, username, c.Request.URL) + user, errWithCode := m.processor.Fedi().UserGet(ctx, username, c.Request.URL) if errWithCode != nil { apiutil.ErrorHandler(c, errWithCode, m.processor.InstanceGetV1) //nolint:contextcheck return |