From fc7955165634e39c2f59999f9cea0095d6f298af Mon Sep 17 00:00:00 2001 From: Tyler Kennedy Date: Sat, 17 Dec 2022 22:20:51 -0500 Subject: Increase the allowed size of URIs Increase the allowed size of Post.object_uri and Post.url from 500 characters to a more reasonable 2048. See https://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers.--- activities/models/post.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activities/models/post.py b/activities/models/post.py index 553118a..6bd5040 100644 --- a/activities/models/post.py +++ b/activities/models/post.py @@ -180,7 +180,7 @@ class Post(StatorModel): local = models.BooleanField() # The canonical object ID - object_uri = models.CharField(max_length=500, blank=True, null=True, unique=True) + object_uri = models.CharField(max_length=2048, blank=True, null=True, unique=True) # Who should be able to see this Post visibility = models.IntegerField( @@ -197,7 +197,7 @@ class Post(StatorModel): summary = models.TextField(blank=True, null=True) # The public, web URL of this Post on the original server - url = models.CharField(max_length=500, blank=True, null=True) + url = models.CharField(max_length=2048, blank=True, null=True) # The Post it is replying to as an AP ID URI # (as otherwise we'd have to pull entire threads to use IDs) -- cgit v1.2.3