pticostaricags / FairPlaySocial

Multi-platform social network system
GNU General Public License v3.0
21 stars 7 forks source link

Fill the list of forbidden urls #11

Open efonsecab opened 1 year ago

efonsecab commented 1 year ago

FairPlaySocial already has a small feature to deny creating posts with Forbidden Urls. There is a table "ForbiddenUrl" and a class "ForbiddenUrlService". The urls must be the shortest form of the url, without protocol

Currently, the table is empty, we need to start filling the list with 2 types of urls

In the Post-Deployment script, add the lines to insert the Forbidden Urls.

Once the list is filled, it is required to test users cannot create posts containing any forbidden url.

Note: Research if it is feasible to create a custom validator reading a test file embedded in the assembly, containing the list of forbidden sites, this will help to avoid doing a roundtrip to check for forbidden urls.

bleakprestiger commented 1 year ago

Can I Take This Enhancement ?

efonsecab commented 1 year ago

Can I Take This Enhancement ?

Hello @bleakprestiger , my apologies I did not get a notification, you can go ahead and work on this if you are still interested