Skip to content

Commit a47f2c3

Browse files
committed
fix: don't remove www from endpoint urls
1 parent b9e7e29 commit a47f2c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ghap-embed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ class GhostActivityPubEmbed extends HTMLElement {
368368

369369
const proxyMode = proxy.hostname !== url.hostname;
370370

371-
const path = endpoint.replace('www.', '').replace(`${url.origin}/.ghost/activitypub/`, '');
371+
const path = endpoint.replace(`${url.origin}/.ghost/activitypub/`, '');
372372

373373
const baseUrl = proxyMode ? proxy.origin : url.origin;
374374

0 commit comments

Comments
 (0)