diff options
| author | 2025-09-15 18:28:48 +0200 | |
|---|---|---|
| committer | 2025-09-15 18:28:48 +0200 | |
| commit | 882d07db5f21b007f6c1ece4516c62c97536dfe7 (patch) | |
| tree | bfdf3d0993f93f2858f728d3e987bc14025bed73 /internal/processing/status | |
| parent | [docs] Fix broken links and typos (#4418) (diff) | |
| download | gotosocial-882d07db5f21b007f6c1ece4516c62c97536dfe7.tar.xz | |
[bugfix] API status edit history returned in inverse order (#4432)
Simply reverses the order in which we build status edit history for the frontend. In fact now it matches how we store it in the database which is even easier :p. Why I thought it needed to be returned inverse to begin with? Who knows.
closes https://codeberg.org/superseriousbusiness/gotosocial/issues/4426 (thank you [@DarkCat09](https://codeberg.org/DarkCat09) for pointing it out!)
Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4432
Co-authored-by: kim <grufwub@gmail.com>
Co-committed-by: kim <grufwub@gmail.com>
Diffstat (limited to 'internal/processing/status')
| -rw-r--r-- | internal/processing/status/edit.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/processing/status/edit.go b/internal/processing/status/edit.go index 3ca21f5cf..2a2321604 100644 --- a/internal/processing/status/edit.go +++ b/internal/processing/status/edit.go @@ -375,13 +375,13 @@ func (p *Processor) HistoryGet(ctx context.Context, requester *gtsmodel.Account, return nil, gtserror.NewErrorInternalError(err) } - edits, err := p.converter.StatusToAPIEdits(ctx, target) + editHistory, err := p.converter.StatusToEditHistory(ctx, target) if err != nil { err := gtserror.Newf("error converting status edits: %w", err) return nil, gtserror.NewErrorInternalError(err) } - return edits, nil + return editHistory, nil } func (p *Processor) processMediaEdits( |
