mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[performance] remove last of relational queries to instead rely on caches (#2091)
This commit is contained in:
@@ -699,8 +699,8 @@ func (c *converter) StatusToAPIStatus(ctx context.Context, s *gtsmodel.Status, r
|
||||
}
|
||||
|
||||
if appID := s.CreatedWithApplicationID; appID != "" {
|
||||
app := >smodel.Application{}
|
||||
if err := c.db.GetByID(ctx, appID, app); err != nil {
|
||||
app, err := c.db.GetApplicationByID(ctx, appID)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error getting application %s: %w", appID, err)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user