Changeset 72ec6a4 in Klonkt for src/services/ActivityPubService.js
- Timestamp:
- 07/31/2026 06:55:59 PM (6 weeks ago)
- Branches:
- main
- Children:
- 17546af
- Parents:
- bfa6fa1
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
rbfa6fa1 r72ec6a4 26 26 import EmbedResolver from './EmbedResolver.js'; 27 27 import Push from './PushService.js'; 28 import { getTenancy } from './SettingsService.js';29 28 import { t as i18nT } from './i18n.js'; 30 29 import Blocklist from './BlocklistService.js'; … … 1418 1417 for (const cb of cbs) { try { cb(); } catch { /* a waiter must never break the rest */ } } 1419 1418 } 1420 // Hub-aware path prefix for a site's pages ('' in solo).1421 function pushPrefix(slug) { 1422 try { return getTenancy() === 'hub' ? `/user/${slug}` : ''; } catch { return ''; } 1423 }1419 // Path prefix for a site's pages. One instance is one owner, so the site 1420 // lives at the root; kept as a function because the push URLs read like 1421 // `${pushPrefix(slug)}/messages` all over this file. 1422 function pushPrefix() { return ''; } 1424 1423 // Notification language: the site's content language (fallback: instance default). 1425 1424 function pushLang(slug) {
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)