mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-06 21:18:57 +08:00
feat: remove referrerpolicy in routes
This commit is contained in:
@@ -32,8 +32,7 @@ module.exports = async (ctx) => {
|
||||
const totalSubmissions = submissionProgress.totalSubmissions;
|
||||
// 提交通过率
|
||||
const ProgressNumber = (acSubmissions / totalSubmissions).toFixed(4);
|
||||
const description = `全站排名 ${siteRanking} <br>解决的题目 ${acTotal} / ${questionTotal} <br>通过的提交 ${acSubmissions} / ${totalSubmissions} <br>提交通过率 ${ProgressNumber *
|
||||
100} % <br><img referrerpolicy="no-referrer" src="${userAvatar}">`;
|
||||
const description = `全站排名 ${siteRanking} <br>解决的题目 ${acTotal} / ${questionTotal} <br>通过的提交 ${acSubmissions} / ${totalSubmissions} <br>提交通过率 ${ProgressNumber * 100} % <br><img src="${userAvatar}">`;
|
||||
payload = `{"operationName":"recentSubmissions","variables":{"userSlug":"${user}"},"query":"query recentSubmissions($userSlug: String!) {\\n recentSubmissions(userSlug: $userSlug) {\\n status\\n lang\\n question {\\n questionFrontendId\\n title\\n translatedTitle\\n titleSlug\\n __typename\\n }\\n submitTime\\n __typename\\n }\\n}\\n"}`;
|
||||
const responseothers = await got({
|
||||
method: 'post',
|
||||
|
||||
@@ -19,7 +19,7 @@ module.exports = async (ctx) => {
|
||||
const img = $('div.panel-body')
|
||||
.find('img')
|
||||
.attr('src'); // 用户的头像
|
||||
const src = `<img referrerpolicy="no-referrer" src="${img}">`;
|
||||
const src = `<img src="${img}">`;
|
||||
const solvedQuestion = $('ul.list-group')
|
||||
.eq(2)
|
||||
.children()
|
||||
|
||||
Reference in New Issue
Block a user