Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
use proxy url for favicon on shot page
Browse files Browse the repository at this point in the history
  • Loading branch information
dannycoates committed Apr 25, 2017
1 parent 509dc8c commit 76d0205
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/src/pages/shot/model.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { createDownloadUrl } = require("../../proxy-url");
const { createProxyUrl, createDownloadUrl } = require("../../proxy-url");
const { getGitRevision } = require("../../linker");
const MobileDetect = require('mobile-detect');

Expand All @@ -10,6 +10,9 @@ exports.createModel = function(req) {
if (clip) {
downloadUrl = createDownloadUrl(clip.image.url, req.shot.filename);
}
if (req.shot.favicon) {
req.shot.favicon = createProxyUrl(req, req.shot.favicon);
}
let serverPayload = {
title: req.shot.title,
staticLink: req.staticLink,
Expand Down

0 comments on commit 76d0205

Please # to comment.