Changeset cb01666 in Klonkt for src/middleware
- Timestamp:
- 06/23/2026 02:54:36 PM (3 months ago)
- Branches:
- main
- Children:
- 9b851e7
- Parents:
- 8f2f97c
- Location:
- src/middleware
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/middleware/render.js
r8f2f97c rcb01666 20 20 import { isPremium as isPremiumInstance, premiumEnabled, premiumUnlocked } from '../services/PatreonService.js'; 21 21 import { unreadCount as notifUnreadCount } from '../services/NotificationService.js'; 22 import { audioEnabled as audioFeatureEnabled } from '../config/features.js'; 22 23 import { PLATFORMS as PLATFORMS_CATALOG } from '../services/PlatformIcons.js'; 23 24 import { t as i18nT, resolveLang, SUPPORTED as LANGS, LANG_NAMES } from '../services/i18n.js'; … … 111 112 siteOwnerAvatar, 112 113 site: _site, 114 audioEnabled: audioFeatureEnabled(), 113 115 audioTracks: data.audioTracks || res.locals.audioTracks || [], 114 116 siteUrlBase: res.locals.siteUrlBase || '', -
src/middleware/site.js
r8f2f97c rcb01666 12 12 import { getTenancy } from '../services/SettingsService.js'; 13 13 import { audioUrl } from '../services/AudioStreamService.js'; 14 import { audioEnabled } from '../config/features.js'; 14 15 15 16 /** … … 70 71 */ 71 72 export function loadAudioTracks(req, res, next) { 73 if (!audioEnabled()) { res.locals.audioTracks = []; return next(); } // lite-modus 72 74 const site = res.locals.site; 73 75 if (!site || site.enable_audio_player === 0) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)