Skip to content

fix: change character limits to allow for long instance domains

aa requested to merge aa/firefish:develop into develop

This PR changes the max length for hosts of various entities to 512 characters, and the max length of favicon and icon URLs for instances to 4096 characters, to allow federation to work properly with instances that have long domains such as this one.

I wrote the migration by hand as typeorm's generator prefers to delete tables instead of updating them.

I'm unsure if this is the best way to handle this, but i've tested it and it works. Open to suggestions.

  • I agree to follow this project's Contribution Guidelines
  • I have made sure to test this pull request
  • I have made sure to run pnpm run format before submitting this pull request
Edited by aa

Merge request reports