diff --git a/api/post.go b/api/post.go index b95689f..2f05a97 100644 --- a/api/post.go +++ b/api/post.go @@ -24,7 +24,7 @@ func getPost(w http.ResponseWriter, r *http.Request) { } localPost, err := Container.GetPostUseCase.GetPost(uint32(id)) - if err != nil { + if err != nil || !localPost.IsOnline { http.Error(w, "The requested resource, identified by its unique ID, could not be found on the server.", http.StatusNotFound) return }