Added feeds for crossposting and a rebuild site button
This commit is contained in:
parent
76ed54f119
commit
fa9be69045
6 changed files with 62 additions and 11 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue