traded in new video thumb
This commit is contained in:
parent
7baf2dd75c
commit
be0bf27a14
5 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@ const { postToStats, sendGoogleAnalytics } = require('../controllers/statsContro
|
|||
const SERVE = 'SERVE';
|
||||
const SHOW = 'SHOW';
|
||||
const SHOWLITE = 'SHOWLITE';
|
||||
const DEFAULT_THUMBNAIL = 'https://spee.ch/assets/img/content-freedom-large.png';
|
||||
const DEFAULT_THUMBNAIL = 'https://spee.ch/assets/img/video_thumb_default.png';
|
||||
|
||||
function checkForLocalAssetByClaimId (claimId, name) {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
|
|
@ -155,7 +155,7 @@ module.exports = {
|
|||
element['directUrlLong'] = `/${element.claimId}/${element.name}.${fileExtenstion}`;
|
||||
element['directUrlShort'] = `/${element.claimId}/${element.name}.${fileExtenstion}`;
|
||||
element['contentType'] = element.fileType;
|
||||
element['thumbnail'] = 'https://spee.ch/assets/img/content-freedom-large.png';
|
||||
element['thumbnail'] = 'https://spee.ch/assets/img/video_thumb_default.png';
|
||||
});
|
||||
}
|
||||
resolve(results);
|
||||
|
|
BIN
public/assets/img/video_thumb_default.png
Normal file
BIN
public/assets/img/video_thumb_default.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 58 KiB |
|
@ -40,7 +40,7 @@ module.exports = (app, siofu, hostedContentPath) => {
|
|||
NOTE: need to validate that client has the credentials to the channel they chose
|
||||
otherwise they could circumvent security client side.
|
||||
*/
|
||||
let channelName = file.meta.cannel;
|
||||
let channelName = file.meta.channel;
|
||||
if (channelName === 'none') channelName = null;
|
||||
// prepare the publish parameters
|
||||
const publishParams = createPublishParams(file.pathName, file.meta.name, file.meta.title, file.meta.description, file.meta.license, file.meta.nsfw, channelName);
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<div class="all-claims-item">
|
||||
<a href="/{{this.claimId}}/{{this.name}}">
|
||||
{{#ifConditional this.fileType '===' 'video/mp4'}}
|
||||
<img class="all-claims-asset" src="/assets/img/content-freedom-large.png"/>
|
||||
<img class="all-claims-asset" src="/assets/img/video_thumb_default.png"/>
|
||||
{{else}}
|
||||
<img class="all-claims-asset" src="/{{this.claimId}}/{{this.name}}.ext" />
|
||||
{{/ifConditional}}
|
||||
|
|
Loading…
Reference in a new issue