mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-24 11:03:31 -06:00
[feature/performance] support uncaching remote emoji + scheduled cleanup functions (#1987)
This commit is contained in:
parent
81fe59dadc
commit
9eff0d46e4
33 changed files with 1287 additions and 219 deletions
|
|
@ -1122,7 +1122,7 @@ func (c *converter) ReportToAdminAPIReport(ctx context.Context, r *gtsmodel.Repo
|
|||
|
||||
statuses := make([]*apimodel.Status, 0, len(r.StatusIDs))
|
||||
if len(r.StatusIDs) != 0 && len(r.Statuses) == 0 {
|
||||
r.Statuses, err = c.db.GetStatuses(ctx, r.StatusIDs)
|
||||
r.Statuses, err = c.db.GetStatusesByIDs(ctx, r.StatusIDs)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("ReportToAdminAPIReport: error getting statuses from the db: %w", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue