summaryrefslogtreecommitdiff
path: root/packages/backend/src
diff options
context:
space:
mode:
authorMarie <github@yuugi.dev>2025-06-02 18:49:23 +0000
committerMarie <github@yuugi.dev>2025-06-02 18:49:23 +0000
commita7ba809df43b35ea4a4da60738e0231528877074 (patch)
tree2e44a9b2b5aee8b307e745565d3a32381b116930 /packages/backend/src
parentmerge: Sync local storage to properties to preference profile (resolves #1075... (diff)
parentallow fragments in AP ID URLs - fixes polls (diff)
downloadsharkey-a7ba809df43b35ea4a4da60738e0231528877074.tar.gz
sharkey-a7ba809df43b35ea4a4da60738e0231528877074.tar.bz2
sharkey-a7ba809df43b35ea4a4da60738e0231528877074.zip
merge: allow fragments in AP ID URLs - fixes polls (!1076)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1076 Approved-by: Hazelnoot <acomputerdog@gmail.com> Approved-by: Marie <github@yuugi.dev>
Diffstat (limited to 'packages/backend/src')
-rw-r--r--packages/backend/src/core/activitypub/ApUtilityService.ts6
1 files changed, 0 insertions, 6 deletions
diff --git a/packages/backend/src/core/activitypub/ApUtilityService.ts b/packages/backend/src/core/activitypub/ApUtilityService.ts
index c3958cdf42..3c125c6cd9 100644
--- a/packages/backend/src/core/activitypub/ApUtilityService.ts
+++ b/packages/backend/src/core/activitypub/ApUtilityService.ts
@@ -80,7 +80,6 @@ export class ApUtilityService {
/**
* Verifies that a provided URL is in a format acceptable for federation.
* @throws {IdentifiableError} If URL cannot be parsed
- * @throws {IdentifiableError} If URL contains a fragment
* @throws {IdentifiableError} If URL is not HTTPS
*/
public assertApUrl(url: string | URL): void {
@@ -93,11 +92,6 @@ export class ApUtilityService {
}
}
- // Hash component breaks federation
- if (url.hash) {
- throw new IdentifiableError('0bedd29b-e3bf-4604-af51-d3352e2518af', `invalid AP url ${url}: contains a fragment (#)`);
- }
-
// Must be HTTPS
if (!this.checkHttps(url)) {
throw new IdentifiableError('0bedd29b-e3bf-4604-af51-d3352e2518af', `invalid AP url ${url}: unsupported protocol ${url.protocol}`);