feat(marketing): add security bug bounty policy (#29)

This commit is contained in:
hampus-fluxer
2026-01-05 14:28:04 +01:00
committed by GitHub
parent 81402413f1
commit a9da71c7d7
48 changed files with 902 additions and 343 deletions

View File

@@ -15,28 +15,8 @@
//// You should have received a copy of the GNU Affero General Public License
//// along with Fluxer. If not, see <https://www.gnu.org/licenses/>.
import fluxer_marketing/locale
import fluxer_marketing/router
import gleeunit
import gleeunit/should
pub fn main() {
gleeunit.main()
}
pub fn update_locale_in_article_path_rebuilds_slug_test() {
let path = "/help/en-us/articles/1445730947679911936-requesting-data-deletion"
router.update_locale_in_path(path, locale.Ar)
|> should.equal("/help/ar/articles/1445730947679911936-طلب-حذف-البيانات")
}
pub fn update_locale_in_article_path_keeps_extra_segments_test() {
let path =
"/help/en-us/articles/1445730947679911936-requesting-data-deletion/extra"
router.update_locale_in_path(path, locale.Ar)
|> should.equal(
"/help/ar/articles/1445730947679911936-طلب-حذف-البيانات/extra",
)
}