Added feeds for crossposting and a rebuild site button

This commit is contained in:
Leon Mika 2026-03-08 09:37:49 +11:00
parent 76ed54f119
commit fa9be69045
6 changed files with 62 additions and 11 deletions

View file

@ -79,3 +79,13 @@ func (s *Service) fetchOrCreatePost(ctx context.Context, site models.Site, param
}
return post, nil
}
// TEMP - to move
func (s *Service) RebuildSite(ctx context.Context) error {
site, ok := models.GetSite(ctx)
if !ok {
return models.SiteRequiredError
}
s.publisher.Queue(site)
return nil
}