add internal/{processor,streaming}

This commit is contained in:
sam 2023-10-15 17:08:55 +02:00
parent 6f17b59a47
commit 5c6da51234
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
6 changed files with 128 additions and 29 deletions

View file

@ -92,6 +92,6 @@ func (app *App) Create(w http.ResponseWriter, r *http.Request) (api.Post, error)
return api.Post{}, err
}
// TODO: federate post + push to websockets
go app.Processor.HandlePost(post)
return api.DBPostToPost(post, blog, acct), nil
}