upgrades
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user