Don't return metadata (project, version, language, path)
Returning this metadata makes the internal/external document requests being
different. Let's avoid this for now since we are not using this metadata yet.
We can add it when we needed in the future.
@@ -318,14 +318,6 @@ class EmbedAPIBase(CachedResponseMixin, APIView):
'content': content,
'external': external,
}
-
- if not external:
- response.update({
- 'project': self.unresolved_url.project.slug,
- 'version': self.unresolved_url.version_slug,
- 'language': self.unresolved_url.language_slug,
- 'path': self.unresolved_url.filename,
- })
return Response(response)
