This commit is contained in:
Simon
2026-04-09 07:19:33 +00:00
parent 6e43b3b3d0
commit 57eb2d7063
6 changed files with 49 additions and 352 deletions

View File

@@ -70,6 +70,13 @@ pub struct Subscription {
pub status: String, //"incomplete"
}
#[derive(serde::Serialize)]
pub struct CdnReferrer {
pub hostContains: String,
pub referer: String,
pub origin: String,
}
impl Subscription {
pub fn new() -> Self {
Subscription {
@@ -93,6 +100,7 @@ pub struct Status {
pub nsfw: bool,
pub categories: Vec<String>,
pub options: Vec<Options>,
pub cdnReferrers: Vec<CdnReferrer>,
pub filtersFooter: String, //"Help us improve our algorithms by selecting the categories that best describe you. These will not necessarily affect your search results, but will help us tailor the app to your interests."
}
impl Status {
@@ -113,6 +121,11 @@ impl Status {
nsfw: true,
categories: vec![],
options: vec![],
cdnReferrers: vec![CdnReferrer {
hostContains: "phncdn".to_string(),
referer: "https://www.pornhub.com/".to_string(),
origin: "https://www.pornhub.com".to_string(),
}],
filtersFooter:
"Help us improve our algorithms by giving us your feedback on the hottub discord."
.to_string(),
@@ -162,5 +175,6 @@ pub struct StatusResponse {
pub nsfw: bool,
pub categories: Vec<String>,
pub options: Vec<Options>,
pub cdnReferrers: Vec<CdnReferrer>,
pub filtersFooter: String,
}