Skip to content

Commit

Permalink
fix: add no-referrer to yande.re (DIYgod#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari authored and DIYgod committed May 27, 2018
1 parent f971f2b commit 771ef9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion routes/yande.re/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>`;
}
Expand Down
2 changes: 1 addition & 1 deletion routes/yande.re/post_popular_recent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>`;
}
Expand Down

0 comments on commit 771ef9f

Please sign in to comment.