@@ -193,6 +193,7 @@ $def$ | |||||
name=NEW.name, | name=NEW.name, | ||||
is_closed=NEW.is_closed, | is_closed=NEW.is_closed, | ||||
num_comments=NEW.num_comments, | num_comments=NEW.num_comments, | ||||
updated_unix=NEW.updated_unix, | |||||
comment=(select array_to_string(array_agg(content order by created_unix desc),',') from public.comment where issue_id=NEW.id) | comment=(select array_to_string(array_agg(content order by created_unix desc),',') from public.comment where issue_id=NEW.id) | ||||
where id=NEW.id; | where id=NEW.id; | ||||
return new; | return new; | ||||
@@ -573,7 +573,8 @@ func trimFontHtml(text []rune) string { | |||||
startRune := rune('<') | startRune := rune('<') | ||||
endRune := rune('>') | endRune := rune('>') | ||||
count := 0 | count := 0 | ||||
for i := 0; i < len(text); i++ { | |||||
i := 0 | |||||
for ; i < len(text); i++ { | |||||
if text[i] == startRune { //start < | if text[i] == startRune { //start < | ||||
re := false | re := false | ||||
j := i + 1 | j := i + 1 | ||||
@@ -592,11 +593,14 @@ func trimFontHtml(text []rune) string { | |||||
} else { | } else { | ||||
return string(text[0:i]) | return string(text[0:i]) | ||||
} | } | ||||
} | } | ||||
} | } | ||||
} | } | ||||
return string(text) | |||||
if count%2 == 1 { | |||||
return string(text[0:i]) + "</font>" | |||||
} else { | |||||
return string(text[0:i]) | |||||
} | |||||
} | } | ||||
func trimHrefHtml(result string) string { | func trimHrefHtml(result string) string { | ||||
@@ -1125,7 +1129,7 @@ func makePrivateIssueOrPr(issues []*models.Issue, res *SearchRes, Key string, la | |||||
record["num_comments"] = issue.NumComments | record["num_comments"] = issue.NumComments | ||||
record["is_closed"] = issue.IsClosed | record["is_closed"] = issue.IsClosed | ||||
record["updated_unix"] = issue.UpdatedUnix | record["updated_unix"] = issue.UpdatedUnix | ||||
record["updated_html"] = timeutil.TimeSinceUnix(repo.UpdatedUnix, language) | |||||
record["updated_html"] = timeutil.TimeSinceUnix(issue.UpdatedUnix, language) | |||||
res.Result = append(res.Result, record) | res.Result = append(res.Result, record) | ||||
} | } | ||||
} | } | ||||
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》