1
0
mirror of https://github.com/AllanWang/Frost-for-Facebook.git synced 2024-11-10 04:52:38 +01:00

Blacklist h query

This commit is contained in:
Allan Wang 2019-12-29 16:51:56 -08:00
parent 0828e8fcee
commit 03787c95cb
No known key found for this signature in database
GPG Key ID: C93E3F9C679D7A56
2 changed files with 8 additions and 0 deletions

View File

@ -144,6 +144,7 @@ class FbUrlFormatter(url: String) {
"refid",
"SharedWith",
"fbclid",
"h",
"_ft_",
"_tn_",
"_xt_",

View File

@ -156,6 +156,13 @@ class FbUrlTest {
assertFbFormat(expected, url)
}
@Test
fun queryH() {
val url = "${FB_URL_BASE}sample/?h=asdfasdf"
val expected = "${FB_URL_BASE}sample/"
assertFbFormat(expected, url)
}
// @Test
// fun viewFullImageIndirect() {
// val urlBase = "photo/view_full_size/?fbid=1234&ref_component=mbasic_photo_permalink&ref_page=%2Fwap%2Fphoto.php&refid=13&_ft_=qid.1234%3Amf_story_key.1234%3Atop_level_post_id"