forked from Gitlink/forgeplus
FIX get readme file bug
This commit is contained in:
commit
ffc14da311
|
@ -56,9 +56,7 @@ class RepositoriesController < ApplicationController
|
||||||
|
|
||||||
# TODO
|
# TODO
|
||||||
# 临时处理readme文件问题
|
# 临时处理readme文件问题
|
||||||
admin = current_user.blank? ? User.where(admin: true).last : current_user
|
result = Gitea::Repository::Readme::GetService.call(@owner.login, @project.identifier, @ref, @owner&.gitea_token)
|
||||||
|
|
||||||
result = Gitea::Repository::Readme::GetService.call(@owner.login, @project.identifier, @ref, admin&.gitea_token)
|
|
||||||
@readme =
|
@readme =
|
||||||
if result[:status] == :success
|
if result[:status] == :success
|
||||||
result[:body]
|
result[:body]
|
||||||
|
|
Loading…
Reference in New Issue