f0ckv2 specifics...
This commit is contained in:
@@ -9681,7 +9681,7 @@ html[theme="f0ck95d"] .badge-dark {
|
||||
}
|
||||
|
||||
.steuerung {
|
||||
font-size: large;
|
||||
font-size: x-large;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
|
||||
@@ -972,6 +972,15 @@ export default (router, tpl) => {
|
||||
|
||||
// Recent Activity Page
|
||||
router.get(/\/activity\/?/, async (req, res) => {
|
||||
if (!req.session && cfg.main.hide_comments_from_public) {
|
||||
if (req.url.qs?.json === 'true' || req.headers['x-requested-with'] === 'XMLHttpRequest') {
|
||||
return res.reply({
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ success: true, comments: [], page: 1, hasMore: false, require_login: true })
|
||||
});
|
||||
}
|
||||
return res.reply({ code: 403, body: "Forbidden" });
|
||||
}
|
||||
try {
|
||||
const page = +(req.url.qs?.page || 1);
|
||||
const limit = Math.min(+(req.url.qs?.limit || 50), 50);
|
||||
|
||||
@@ -142,8 +142,9 @@ db.listen('activity', async (payload) => {
|
||||
data.username = 'System';
|
||||
}
|
||||
|
||||
// Broadcast to ALL connected clients
|
||||
// Broadcast to ALL connected clients (except guests if comments are hidden)
|
||||
for (const client of clients) {
|
||||
if (!client.userId && cfg.main.hide_comments_from_public) continue;
|
||||
client.send({ type: 'activity', data });
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
@@ -1277,6 +1277,7 @@ process.on('uncaughtException', err => {
|
||||
enable_item_title: cfg.websrv.enable_item_title !== false,
|
||||
enable_global_chat: !!cfg.websrv.enable_global_chat,
|
||||
enable_sidebar: cfg.websrv.enable_sidebar !== false,
|
||||
sidebar_closed_default: cfg.websrv.sidebar_closed_default === true,
|
||||
embed_youtube_in_comments: cfg.websrv.embed_youtube_in_comments !== false,
|
||||
get koepfe_json() {
|
||||
try {
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
</head>
|
||||
|
||||
<body class="@if(session)@if(session.use_new_layout)layout-modern@else layout-legacy @endif@else @if(default_layout === 'legacy')layout-legacy@else layout-modern@endif @endif @if(private_society && !session)private-gate-active@endif @if(!enable_sidebar)sidebar-right-hidden@endif">
|
||||
<script>if(localStorage.getItem('sidebarRightHidden')==='true')document.body.classList.add('sidebar-right-hidden');if(localStorage.getItem('comments_hidden')==='true')document.body.classList.add('sidebar-left-hidden');(function(){var d=window.devicePixelRatio||1;console.log('[DPR] devicePixelRatio='+d);var t='dpr-1x';if(d>=1.55)t='dpr-high';else if(d>=1.39)t='dpr-150';else if(d>=1.26)t='dpr-130';else if(d>=1.20)t='dpr-120';else if(d>=1.05)t='dpr-110';document.documentElement.setAttribute('data-dpr',t);})();</script>
|
||||
<script>if(localStorage.getItem('sidebarRightHidden')==='true' || (localStorage.getItem('sidebarRightHidden')===null && {{ sidebar_closed_default ? 'true' : 'false' }}))document.body.classList.add('sidebar-right-hidden');if(localStorage.getItem('comments_hidden')==='true')document.body.classList.add('sidebar-left-hidden');(function(){var d=window.devicePixelRatio||1;console.log('[DPR] devicePixelRatio='+d);var t='dpr-1x';if(d>=1.55)t='dpr-high';else if(d>=1.39)t='dpr-150';else if(d>=1.26)t='dpr-130';else if(d>=1.20)t='dpr-120';else if(d>=1.05)t='dpr-110';document.documentElement.setAttribute('data-dpr',t);})();</script>
|
||||
@if(!private_society || session)
|
||||
<canvas class="hidden-xs" id="bg"></canvas>
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user