summaryrefslogtreecommitdiffstats
path: root/activities
diff options
context:
space:
mode:
authorTyler Kennedy2022-12-17 22:20:51 -0500
committerGitHub2022-12-17 20:20:51 -0700
commitfc7955165634e39c2f59999f9cea0095d6f298af (patch)
tree03a7ccda5d19903b45ae068042a05e8818e60f19 /activities
parentb6a8737d2e95438ada6c84feeec22db41fa73095 (diff)
downloadtakahe-fc7955165634e39c2f59999f9cea0095d6f298af.tar.gz
takahe-fc7955165634e39c2f59999f9cea0095d6f298af.tar.bz2
takahe-fc7955165634e39c2f59999f9cea0095d6f298af.zip
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.
Diffstat (limited to 'activities')
-rw-r--r--activities/models/post.py4
1 files 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)