mirror of
https://github.com/fluxerapp/fluxer.git
synced 2026-11-26 04:06:23 -08:00
fix(unfurl): use the account domain in fediverse handles (#3781)
This commit is contained in:
1 parent
6e4070d4f7
commit
6e64bc4cb0
1 file changed
+2
-1
@@ -140,6 +140,7 @@ pub struct MastodonPollOption {
|
||||
#[derive(Debug, Clone, Deserialize)]
|
||||
pub struct MastodonInstance {
|
||||
pub domain: Option<String>,
|
||||
pub account_domain: Option<String>,
|
||||
pub title: Option<String>,
|
||||
pub thumbnail: Option<MastodonThumbnail>,
|
||||
}
|
||||
@@ -165,7 +166,7 @@ impl From<MastodonInstance> for InstanceInfo {
|
||||
fn from(inst: MastodonInstance) -> Self {
|
||||
let thumbnail_url = inst.thumbnail_url();
|
||||
Self {
|
||||
domain: inst.domain,
|
||||
domain: inst.account_domain.or(inst.domain),
|
||||
title: inst.title,
|
||||
thumbnail_url,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user