hgdf
This commit is contained in:
@@ -978,6 +978,7 @@ export default {
|
|||||||
is_oc: actitem.is_oc || false,
|
is_oc: actitem.is_oc || false,
|
||||||
is_repost: actitem.checksum ? actitem.checksum.includes('_bypass_') : false,
|
is_repost: actitem.checksum ? actitem.checksum.includes('_bypass_') : false,
|
||||||
reposts: repostItems,
|
reposts: repostItems,
|
||||||
|
show_repost_row: !!((session || cfg.websrv.expose_repost_links_to_guests || cfg.websrv.expose_repost_links) && (actitem.checksum?.includes('_bypass_') || (repostItems && repostItems.length > 0))),
|
||||||
width: actitem.width || null,
|
width: actitem.width || null,
|
||||||
height: actitem.height || null,
|
height: actitem.height || null,
|
||||||
original_filename: actitem.original_filename || null,
|
original_filename: actitem.original_filename || null,
|
||||||
|
|||||||
@@ -390,6 +390,8 @@ export default (router, tpl) => {
|
|||||||
data.current_user_hall_slug = (data.tmp && data.tmp.userHall && typeof data.tmp.userHall === 'object') ? data.tmp.userHall.slug : (data.tmp && data.tmp.userHall ? data.tmp.userHall : '');
|
data.current_user_hall_slug = (data.tmp && data.tmp.userHall && typeof data.tmp.userHall === 'object') ? data.tmp.userHall.slug : (data.tmp && data.tmp.userHall ? data.tmp.userHall : '');
|
||||||
data.current_user_hall_owner = (data.tmp && data.tmp.userHallOwner) ? data.tmp.userHallOwner : '';
|
data.current_user_hall_owner = (data.tmp && data.tmp.userHallOwner) ? data.tmp.userHallOwner : '';
|
||||||
data.item_has_dimensions = !!(item.width && item.height);
|
data.item_has_dimensions = !!(item.width && item.height);
|
||||||
|
data.show_repost_row = !!((data.session || cfg.websrv.expose_repost_links_to_guests || cfg.websrv.expose_repost_links) && (item.is_repost || (item.reposts && item.reposts.length > 0)));
|
||||||
|
data.item.show_repost_row = data.show_repost_row;
|
||||||
}
|
}
|
||||||
|
|
||||||
res.setHeader('Cache-Control', 'no-store, no-cache, must-revalidate, proxy-revalidate');
|
res.setHeader('Cache-Control', 'no-store, no-cache, must-revalidate, proxy-revalidate');
|
||||||
|
|||||||
@@ -329,7 +329,7 @@
|
|||||||
<td><pre class="info-hash-codeblock"><code style="word-break: break-all;">{{ item.checksum.split('_bypass_')[0] }}</code></pre></td>
|
<td><pre class="info-hash-codeblock"><code style="word-break: break-all;">{{ item.checksum.split('_bypass_')[0] }}</code></pre></td>
|
||||||
</tr>
|
</tr>
|
||||||
@endif
|
@endif
|
||||||
@if((session || expose_repost_links_to_guests) && (item.is_repost || (item.reposts && item.reposts.length > 0)))
|
@if(show_repost_row)
|
||||||
<tr class="info-repost-row">
|
<tr class="info-repost-row">
|
||||||
<th>Repost</th>
|
<th>Repost</th>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@@ -274,7 +274,7 @@
|
|||||||
<td><pre class="info-hash-codeblock"><code style="word-break: break-all;">{{ item.checksum.split('_bypass_')[0] }}</code></pre></td>
|
<td><pre class="info-hash-codeblock"><code style="word-break: break-all;">{{ item.checksum.split('_bypass_')[0] }}</code></pre></td>
|
||||||
</tr>
|
</tr>
|
||||||
@endif
|
@endif
|
||||||
@if((session || expose_repost_links_to_guests) && (item.is_repost || (item.reposts && item.reposts.length > 0)))
|
@if(show_repost_row)
|
||||||
<tr class="info-repost-row">
|
<tr class="info-repost-row">
|
||||||
<th>Repost</th>
|
<th>Repost</th>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
Reference in New Issue
Block a user