feat: add federation to README.md

This commit is contained in:
Levente Orban committed 2025-11-06 23:32:59 +01:00
1 parent c3f420df74
commit 258b822a27
5 files changed
+72 -12

No files matched your search

+2 -2
View File
@@ -69,9 +69,9 @@ async function readFederationConfig(): Promise<FederationConfig | null> {
*/
async function fetchEventsFromInstance(instanceUrl: string): Promise<Event[]> {
try {
// Ensure URL has protocol and append /api/events
// Ensure URL has protocol and append /api/federation/events
const apiUrl = `http://${instanceUrl}/api/events`;
const apiUrl = `http://${instanceUrl}/api/federation/events`;
logger.debug({ apiUrl }, 'Fetching events from federated instance');