This commit is contained in:
ポール ウェッブ 2018-10-10 16:15:43 -05:00
parent a2667484b1
commit 9ce69e8a85
4 changed files with 8 additions and 8 deletions

View file

@ -13,8 +13,8 @@ import ssr from "choo-ssr";
// U T I L S
const head = local("app/components/head").default;
const wrapper = local("app/components/wrapper").default;
const head = local("/app/components/head").default;
const wrapper = local("/app/components/wrapper").default;

View file

@ -176,7 +176,7 @@ curl --header <span class="token string">"Content-Type: application/json"</span>
document.getElementById("playground-results").innerHTML = `
<pre><code class="language-bash">
<span class="token comment"># With the LBRY app/daemon running locally, you can use this in your Terminal</span>
curl --header <span class="token string">"Content-Type: application/json"</span> --data <span class="token string">'{ "method": "publish", "params": { "name": "TITLE_OF_YOUR_CONTENT", "file_path": "ABSOLUTE_PATH_TO_MEDIA_ON_YOUR_COMPUTER", "bid": "0.001", "metadata": { "description": "DESCRIPTION_OF_YOUR_CONTENT", "title": "TITLE_OF_YOUR_CONTENT", "language": "en", "license": "", "nsfw": false }}}'</span> <span class="token url">http://localhost:5279 </span>
curl --header <span class="token string">"Content-Type: application/json"</span> --data <span class="token string">'{ "method": "publish", "params": { "name": "${getMemeInfo().name}", "file_path": "ABSOLUTE_PATH_TO_MEDIA_ON_YOUR_COMPUTER", "bid": "0.001", "metadata": { "description": "${getMemeInfo().description}", "title": "${getMemeInfo().title}", "language": "${getMemeInfo().language}", "license": "${getMemeInfo().license}", "nsfw": ${getMemeInfo().nsfw} }}}'</span> <span class="token url">http://localhost:5279 </span>
</code></pre>
<div class="loader" id="temp-loader"></div>

View file

@ -63,12 +63,12 @@ module.exports = exports = (data, socket) => {
body.description = dataDetails.description;
body.language = dataDetails.language;
body.license = dataDetails.license;
body.name = dataDetails.name + "-" + randomString(10); // underscores are not allowed?
body.name = dataDetails.name + "-" + randomString(10);
body.nsfw = dataDetails.nsfw;
body.title = dataDetails.title;
// Gotta let the blockchain know what to save
body.file_path = dataDetails.file_path; // just base64 string
body.file_path = dataDetails.file_path;
return uploadImage(body.file_path).then(uploadResponse => {
if (!uploadResponse.status || uploadResponse.status !== "ok") {

View file

@ -10,9 +10,9 @@ const request = require("request-promise-native");
// U T I L S
const fetchMetadata = local("app/helpers/fetch-metadata");
const { generateGitHubFeed } = local("app/helpers/github");
const logSlackError = local("app/helpers/slack");
const fetchMetadata = local("/app/helpers/fetch-metadata");
const { generateGitHubFeed } = local("/app/helpers/github");
const logSlackError = local("/app/helpers/slack");