mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-09 14:34:03 +08:00
项目动态接口
This commit is contained in:
@@ -28,13 +28,4 @@ class CommitLogsController < ApplicationController
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
def activity
|
||||
commit_sql = CommitLog.select("user_id,project_id, '' as ref").order(id: :desc).limit(10).to_sql
|
||||
project_sql = Project.select("user_id,id as project_id, '' as ref").order(id: :desc).limit(10).to_sql
|
||||
project_sql = Issue.select("user_id,project_id, '' as ref").order(id: :desc).limit(10).to_sql
|
||||
project_sql = Issue.select("user_id,project_id, '' as ref").order(id: :desc).limit(10).to_sql
|
||||
privacy_organizations_sql = Project.with_visibility("privacy").joins(:organization_users).where(organization_users: {user_id: current_user.id}).to_sql
|
||||
@organizations = Organization.from("( #{ logged_organizations_sql } UNION #{ privacy_organizations_sql } ) AS users")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user