fix thumbnails
This commit is contained in:
parent
9b554eec1b
commit
f769cac5da
6 changed files with 7 additions and 7 deletions
|
@ -31,7 +31,7 @@ class MainController extends AppController {
|
||||||
|
|
||||||
const tagReceiptAddress = 'bLockNgmfvnnnZw7bM6SPz6hk5BVzhevEp';
|
const tagReceiptAddress = 'bLockNgmfvnnnZw7bM6SPz6hk5BVzhevEp';
|
||||||
|
|
||||||
const blockedListUrl = 'https://api.lbry.com/file/list_blocked';
|
const blockedListUrl = 'https://api.odysee.com/file/list_blocked';
|
||||||
|
|
||||||
protected $redis;
|
protected $redis;
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ $ctTag = $claim->getContentTag();
|
||||||
|
|
||||||
<div data-autothumb="<?php echo $autoThumbText ?>" class="thumbnail <?php echo $a[mt_rand(0, count($a) - 1)] ?>">
|
<div data-autothumb="<?php echo $autoThumbText ?>" class="thumbnail <?php echo $a[mt_rand(0, count($a) - 1)] ?>">
|
||||||
<?php if (!$claim->is_nsfw && strlen(trim($claim->thumbnail_url)) > 0): ?>
|
<?php if (!$claim->is_nsfw && strlen(trim($claim->thumbnail_url)) > 0): ?>
|
||||||
<img src="<?php echo htmlspecialchars($claim->thumbnail_url) ?>" alt="" />
|
<img src="<?php echo htmlspecialchars('https://thumbnails.odycdn.com/optimize/s:0:104/quality:85/plain/'.$claim->thumbnail_url) ?>" alt="" />
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="autothumb"><?php echo $autoThumbText ?></div>
|
<div class="autothumb"><?php echo $autoThumbText ?></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
@ -77,7 +77,7 @@ if (strlen(trim($desc)) == 0) {
|
||||||
<div class="claim-info">
|
<div class="claim-info">
|
||||||
<div data-autothumb="<?php echo $autoThumbText ?>" class="thumbnail <?php echo $a[mt_rand(0, count($a) - 1)] ?>">
|
<div data-autothumb="<?php echo $autoThumbText ?>" class="thumbnail <?php echo $a[mt_rand(0, count($a) - 1)] ?>">
|
||||||
<?php if (!$claim->is_nsfw && strlen(trim($claim->thumbnail_url)) > 0): ?>
|
<?php if (!$claim->is_nsfw && strlen(trim($claim->thumbnail_url)) > 0): ?>
|
||||||
<img src="<?php echo htmlspecialchars($claim->thumbnail_url) ?>" alt="" />
|
<img src="<?php echo htmlspecialchars('https://thumbnails.odycdn.com/optimize/s:0:104/quality:85/plain/'.$claim->thumbnail_url) ?>" alt="" />
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="autothumb"><?php echo $autoThumbText ?></div>
|
<div class="autothumb"><?php echo $autoThumbText ?></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
@ -203,7 +203,7 @@
|
||||||
|
|
||||||
<div data-autothumb="<?php echo $autoThumbText ?>" class="thumbnail <?php echo $a[mt_rand(0, count($a) - 1)] ?>">
|
<div data-autothumb="<?php echo $autoThumbText ?>" class="thumbnail <?php echo $a[mt_rand(0, count($a) - 1)] ?>">
|
||||||
<?php if (!$claim->is_nsfw && strlen(trim($claim->thumbnail_url)) > 0): ?>
|
<?php if (!$claim->is_nsfw && strlen(trim($claim->thumbnail_url)) > 0): ?>
|
||||||
<img src="<?php echo strip_tags($claim->thumbnail_url) ?>" alt="" />
|
<img src="<?php echo strip_tags('https://thumbnails.odycdn.com/optimize/s:0:104/quality:85/plain/'.$claim->thumbnail_url) ?>" alt="" />
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="autothumb"><?php echo $autoThumbText ?></div>
|
<div class="autothumb"><?php echo $autoThumbText ?></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
@ -38,7 +38,7 @@ function buildChartData(claimsData) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadChartData() {
|
function loadChartData() {
|
||||||
var api_url = "https://chainquery.lbry.com/api/sql?query=";
|
var api_url = "https://chainquery.odysee.tv/api/sql?query=";
|
||||||
var query = "SELECT c1.claim_type, c1.bid_state, c1.effective_amount, c1.transaction_time, o.transaction_time AS 'spent_time' FROM claim c1 LEFT JOIN (SELECT output.claim_id, tx.transaction_time FROM output INNER JOIN input ON input.prevout_hash = output.transaction_hash AND input.prevout_n = output.vout INNER JOIN transaction tx ON tx.id = input.transaction_id) o ON o.claim_id=c1.claim_id AND c1.bid_state='Spent' ORDER BY c1.transaction_time ASC";
|
var query = "SELECT c1.claim_type, c1.bid_state, c1.effective_amount, c1.transaction_time, o.transaction_time AS 'spent_time' FROM claim c1 LEFT JOIN (SELECT output.claim_id, tx.transaction_time FROM output INNER JOIN input ON input.prevout_hash = output.transaction_hash AND input.prevout_n = output.vout INNER JOIN transaction tx ON tx.id = input.transaction_id) o ON o.claim_id=c1.claim_id AND c1.bid_state='Spent' ORDER BY c1.transaction_time ASC";
|
||||||
var url = api_url + query;
|
var url = api_url + query;
|
||||||
var loadProgress = $('.bids-chart-container .load-progress');
|
var loadProgress = $('.bids-chart-container .load-progress');
|
||||||
|
|
|
@ -97,7 +97,7 @@ function buildChartData(blockData) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadChartData() {
|
function loadChartData() {
|
||||||
var api_url = "https://chainquery.lbry.com/api/sql?query=";
|
var api_url = "https://chainquery.odysee.tv/api/sql?query=";
|
||||||
var query = "SELECT height, block_time FROM block WHERE confirmations > 0 ORDER BY height";
|
var query = "SELECT height, block_time FROM block WHERE confirmations > 0 ORDER BY height";
|
||||||
var url = api_url + query;
|
var url = api_url + query;
|
||||||
var loadProgress = $('.mining-inflation-chart-container .load-progress');
|
var loadProgress = $('.mining-inflation-chart-container .load-progress');
|
||||||
|
|
Loading…
Reference in a new issue