提交 9007a293 编写于 作者: G George Andrinopoulos

Fix todos API endpoint application error

上级 f15340e0
......@@ -397,7 +397,11 @@ module API
expose :target_type
expose :target do |todo, options|
Entities.const_get(todo.target_type).represent(todo.target, options)
if todo.target_type == 'Commit'
Entities.const_get('RepoCommit').represent(todo.target, options)
else
Entities.const_get(todo.target_type).represent(todo.target, options)
end
end
expose :target_url do |todo, options|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册