diff options
| author | 2023-02-22 16:05:26 +0100 | |
|---|---|---|
| committer | 2023-02-22 16:05:26 +0100 | |
| commit | b6fbdc66c1ce1ec61ebfb6fcc0351ea627a1d288 (patch) | |
| tree | c79d1107375597ab8a79045c80dd62dc95a204e7 /internal/api/client/customemojis | |
| 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/api/client/customemojis')
| -rw-r--r-- | internal/api/client/customemojis/customemojis.go | 4 | ||||
| -rw-r--r-- | internal/api/client/customemojis/customemojisget.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/internal/api/client/customemojis/customemojis.go b/internal/api/client/customemojis/customemojis.go index 3bddf7db8..528dd25f4 100644 --- a/internal/api/client/customemojis/customemojis.go +++ b/internal/api/client/customemojis/customemojis.go @@ -31,10 +31,10 @@ const ( ) type Module struct { - processor processing.Processor + processor *processing.Processor } -func New(processor processing.Processor) *Module { +func New(processor *processing.Processor) *Module { return &Module{ processor: processor, } diff --git a/internal/api/client/customemojis/customemojisget.go b/internal/api/client/customemojis/customemojisget.go index 79cb32acf..167c499d2 100644 --- a/internal/api/client/customemojis/customemojisget.go +++ b/internal/api/client/customemojis/customemojisget.go @@ -66,7 +66,7 @@ func (m *Module) CustomEmojisGETHandler(c *gin.Context) { return } - emojis, errWithCode := m.processor.CustomEmojisGet(c) + emojis, errWithCode := m.processor.Media().GetCustomEmojis(c) if errWithCode != nil { apiutil.ErrorHandler(c, errWithCode, m.processor.InstanceGetV1) return |
