mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-08 14:11:42 +08:00
Merge branch 'standalone_develop' into trustie_server
This commit is contained in:
@@ -63,6 +63,15 @@ class Projects::ListMyQuery < ApplicationQuery
|
||||
projects = projects.sync_mirror
|
||||
end
|
||||
|
||||
if params[:topic_name].present?
|
||||
projects = projects.with_project_topic_name(params[:topic_name].to_s.split(","))
|
||||
end
|
||||
|
||||
if params[:topic_id].present?
|
||||
projects = projects.with_project_topic(params[:topic_id])
|
||||
end
|
||||
|
||||
|
||||
# 表情处理
|
||||
keywords = params[:search].to_s.each_char.select { |c| c.bytes.first < 240 }.join('')
|
||||
q = projects.ransack(name_or_identifier_cont: keywords)
|
||||
|
||||
Reference in New Issue
Block a user