mirror of
https://framagit.org/veretcle/scootaloo.git
synced 2025-07-20 09:01:19 +02:00
fix: fields_attribute is busted so 🤷
This commit is contained in:
@@ -268,7 +268,7 @@ pub async fn profile(config: Config, bot: Option<bool>) {
|
||||
&twitter_user.entities.description.urls,
|
||||
);
|
||||
|
||||
let fields_attributes = get_attribute_from_url(&twitter_user.entities.url);
|
||||
// let fields_attributes = get_attribute_from_url(&twitter_user.entities.url);
|
||||
|
||||
let display_name = Some(String::from_utf16_lossy(
|
||||
&twitter_user
|
||||
@@ -295,7 +295,7 @@ pub async fn profile(config: Config, bot: Option<bool>) {
|
||||
header,
|
||||
locked: None,
|
||||
source: None,
|
||||
fields_attributes,
|
||||
fields_attributes: None,
|
||||
};
|
||||
|
||||
let mastodon = get_mastodon_token(&mastodon_config);
|
||||
|
@@ -141,6 +141,7 @@ pub fn get_note_from_description(t: &Option<String>, urls: &[UrlEntity]) -> Opti
|
||||
}
|
||||
|
||||
/// Gets fields_attribute from UserEntityDetail
|
||||
#[allow(dead_code)]
|
||||
pub fn get_attribute_from_url(
|
||||
user_entity_detail: &Option<UserEntityDetail>,
|
||||
) -> Option<Vec<CredentialsFieldAttribute>> {
|
||||
|
Reference in New Issue
Block a user