From 90f47079d9a92fe1a01c21ae9e0a3bd8143b03af Mon Sep 17 00:00:00 2001 From: VC Date: Mon, 12 Dec 2022 15:15:12 +0100 Subject: [PATCH] fix: fields_attribute is busted so :shrug: --- src/lib.rs | 4 ++-- src/mastodon.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 459b901..9f10a5b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -268,7 +268,7 @@ pub async fn profile(config: Config, bot: Option) { &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) { header, locked: None, source: None, - fields_attributes, + fields_attributes: None, }; let mastodon = get_mastodon_token(&mastodon_config); diff --git a/src/mastodon.rs b/src/mastodon.rs index 140be04..2f93c32 100644 --- a/src/mastodon.rs +++ b/src/mastodon.rs @@ -141,6 +141,7 @@ pub fn get_note_from_description(t: &Option, urls: &[UrlEntity]) -> Opti } /// Gets fields_attribute from UserEntityDetail +#[allow(dead_code)] pub fn get_attribute_from_url( user_entity_detail: &Option, ) -> Option> {