go-fed / apcore

Golang ActivityPub Server Framework
GNU Affero General Public License v3.0
104 stars 10 forks source link

Sanitization #69

Open cjslep opened 3 years ago

cjslep commented 3 years ago

63 begins the process of sanitizing fields that are to be displayed in an application. It doesn't cover them all, additional things like preferredUsername and name and others will also need sanitization.

This feature needs to be flexible/extendable, so that it is applied recursively to nested structures, and so different applications can whitelist the differing fields in vocabularies that need sanitization treatment.

This'll be an intersting problem to solve...