f0ckv2 specifics
This commit is contained in:
@@ -7179,6 +7179,7 @@ span#favs {
|
|||||||
padding: 5px;
|
padding: 5px;
|
||||||
background: var(--badge-bg);
|
background: var(--badge-bg);
|
||||||
border-top: 1px solid var(--nav-border-color);
|
border-top: 1px solid var(--nav-border-color);
|
||||||
|
border-bottom: 1px solid var(--nav-border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
span#favs[hidden] {
|
span#favs[hidden] {
|
||||||
@@ -14038,7 +14039,7 @@ textarea#profile_description {
|
|||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
min-height: 120px;
|
min-height: 90px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1029,6 +1029,8 @@ export default {
|
|||||||
and uha.hall_id = ${userHallId}
|
and uha.hall_id = ${userHallId}
|
||||||
and items.active = true
|
and items.active = true
|
||||||
${mimeSQL}
|
${mimeSQL}
|
||||||
|
${!session && getGlobalfilter() ? db`and not exists (select 1 from tags_assign where item_id = items.id and (${db.unsafe(getGlobalfilter())}))` : db``}
|
||||||
|
${!session && cfg.websrv.public_untagged === false ? db`and exists (select 1 from tags_assign where item_id = items.id)` : db``}
|
||||||
${excludedTags.length > 0 ? db`and not exists (select 1 from tags_assign where item_id = items.id and tag_id = any(${excludedTags}::int[]))` : db``}
|
${excludedTags.length > 0 ? db`and not exists (select 1 from tags_assign where item_id = items.id and tag_id = any(${excludedTags}::int[]))` : db``}
|
||||||
order by random()
|
order by random()
|
||||||
limit 1
|
limit 1
|
||||||
@@ -1056,6 +1058,7 @@ export default {
|
|||||||
WHERE items.active = true
|
WHERE items.active = true
|
||||||
${mimeSQL}
|
${mimeSQL}
|
||||||
${checkFilter ? db`AND filter_ta.tag_id IS NULL` : db``}
|
${checkFilter ? db`AND filter_ta.tag_id IS NULL` : db``}
|
||||||
|
${!session && cfg.websrv.public_untagged === false ? db`AND EXISTS (SELECT 1 FROM tags_assign WHERE item_id = items.id)` : db``}
|
||||||
${excludedTags.length > 0 ? db`AND NOT EXISTS (SELECT 1 FROM tags_assign WHERE item_id = items.id AND tag_id = ANY(${excludedTags}::int[]))` : db``}
|
${excludedTags.length > 0 ? db`AND NOT EXISTS (SELECT 1 FROM tags_assign WHERE item_id = items.id AND tag_id = ANY(${excludedTags}::int[]))` : db``}
|
||||||
${!useTagIdOpt ? db`AND ${db.unsafe(globalModeQuery)}` : db``}
|
${!useTagIdOpt ? db`AND ${db.unsafe(globalModeQuery)}` : db``}
|
||||||
ORDER BY random()
|
ORDER BY random()
|
||||||
|
|||||||
@@ -210,6 +210,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@if(session || !hide_comments_from_public)
|
||||||
<div id="comments-container"
|
<div id="comments-container"
|
||||||
data-item-id="{{ item.id }}"
|
data-item-id="{{ item.id }}"
|
||||||
@if(session) data-user="{{ session.user }}" @endif
|
@if(session) data-user="{{ session.user }}" @endif
|
||||||
@@ -221,6 +222,7 @@
|
|||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
@endif
|
||||||
<button class="mobile-scroll-to-top" title="Back to top" aria-label="Scroll to top"><i class="fa-solid fa-chevron-up"></i></button>
|
<button class="mobile-scroll-to-top" title="Back to top" aria-label="Scroll to top"><i class="fa-solid fa-chevron-up"></i></button>
|
||||||
<script id="initial-subscription" type="application/json">{{ isSubscribed }}</script>
|
<script id="initial-subscription" type="application/json">{{ isSubscribed }}</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user