fix: add no-referrer to yande.re (#222)
This commit is contained in:
parent
f971f2b4b2
commit
771ef9ff38
|
|
@ -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>`;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue