add TODO reminder to ApRendererService.ts

This commit is contained in:
Hazelnoot 2025-04-01 12:10:03 -04:00
parent 02fa8f03e5
commit 1c5df0e8e2

View file

@ -548,6 +548,7 @@ export class ApRendererService {
this.userProfilesRepository.findOneByOrFail({ userId: user.id }),
]);
// TODO remove this when we merge the MFM change
const tryRewriteUrl = (maybeUrl: string) => {
const urlSafeRegex = /^(?:http[s]?:\/\/.)?(?:www\.)?[-a-zA-Z0-9@%._\+~#=]{2,256}\.[a-z]{2,6}\b(?:[-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)/;
try {