fix: add no-referrer to yande.re (#222)

This commit is contained in:
阿卡琳 2018-05-27 22:10:47 +08:00 committed by DIYgod
parent f971f2b4b2
commit 771ef9ff38
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ module.exports = async (ctx) => {
link: 'https://yande.re/post',
item: posts.map((post) => {
const content = (url) => {
let result = `<img src="${url}" />`;
let result = `<img referrerpolicy="no-referrer" src="${url}" />`;
if (post.source) {
result += `<a href="${post.source}">source</a>`;
}

View File

@ -31,7 +31,7 @@ module.exports = async (ctx) => {
link: 'https://yande.re/post/popular_recent',
item: posts.map((post) => {
const content = (url) => {
let result = `<img src="${url}" />`;
let result = `<img referrerpolicy="no-referrer" src="${url}" />`;
if (post.source) {
result += `<a href="${post.source}">source</a>`;
}