Publish api fix #191
5 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@ const { postToStats, sendGoogleAnalytics } = require('../controllers/statsContro
|
||||||
const SERVE = 'SERVE';
|
const SERVE = 'SERVE';
|
||||||
const SHOW = 'SHOW';
|
const SHOW = 'SHOW';
|
||||||
const SHOWLITE = 'SHOWLITE';
|
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) {
|
function checkForLocalAssetByClaimId (claimId, name) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
|
|
@ -155,7 +155,7 @@ module.exports = {
|
||||||
element['directUrlLong'] = `/${element.claimId}/${element.name}.${fileExtenstion}`;
|
element['directUrlLong'] = `/${element.claimId}/${element.name}.${fileExtenstion}`;
|
||||||
element['directUrlShort'] = `/${element.claimId}/${element.name}.${fileExtenstion}`;
|
element['directUrlShort'] = `/${element.claimId}/${element.name}.${fileExtenstion}`;
|
||||||
element['contentType'] = element.fileType;
|
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);
|
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
|
NOTE: need to validate that client has the credentials to the channel they chose
|
||||||
otherwise they could circumvent security client side.
|
otherwise they could circumvent security client side.
|
||||||
*/
|
*/
|
||||||
let channelName = file.meta.cannel;
|
let channelName = file.meta.channel;
|
||||||
if (channelName === 'none') channelName = null;
|
if (channelName === 'none') channelName = null;
|
||||||
// prepare the publish parameters
|
// 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);
|
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">
|
<div class="all-claims-item">
|
||||||
<a href="/{{this.claimId}}/{{this.name}}">
|
<a href="/{{this.claimId}}/{{this.name}}">
|
||||||
{{#ifConditional this.fileType '===' 'video/mp4'}}
|
{{#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}}
|
{{else}}
|
||||||
<img class="all-claims-asset" src="/{{this.claimId}}/{{this.name}}.ext" />
|
<img class="all-claims-asset" src="/{{this.claimId}}/{{this.name}}.ext" />
|
||||||
{{/ifConditional}}
|
{{/ifConditional}}
|
||||||
|
|
Loading…
Reference in a new issue