[ActivityPub] Invalid Attachment URLs
I am working on pixelfed federation, and wrote a few tests to ensure proper compatibility and realized that some pleroma attachments contain unsafe characters in the URLs (as per http://www.ietf.org/rfc/rfc1738.txt) and are not fetched because pixelfed detects an invalid URL.
"attachment": [
{
"mediaType": "image/png",
"name": "Screen Shot 2018-09-08 at 10.59.38 PM.png",
"type": "Document",
"url": "https://s3.wasabisys.com/pleroma-site/1c49e1f9-1187-404d-a063-1b37ecec44e9/Screen Shot 2018-09-08 at 10.59.38 PM.png"
},
{
"mediaType": "image/jpeg",
"name": "archer-danger-zone.jpg",
"type": "Document",
"url": "https://s3.wasabisys.com/pleroma-site/cd70cdb6-0148-4dcb-bac6-11fd4aa59834/archer-danger-zone.jpg"
}
],