mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-29 00:11:01 +00:00
Render naddr1 and nrelay1 NostrUrls special (wrong still, but this reminds us to make these links)
This commit is contained in:
parent
1523de43f5
commit
d7ffebe3aa
@ -30,8 +30,12 @@ pub(super) fn render_content(
|
||||
ContentSegment::NostrUrl(nurl) => {
|
||||
match &nurl.0 {
|
||||
NostrBech32::EventAddr(ea) => {
|
||||
// FIXME
|
||||
ui.label(ea.as_bech32_string());
|
||||
// FIXME - we should link to the event instead
|
||||
ui.label(
|
||||
RichText::new(
|
||||
format!("nostr:{}", ea.as_bech32_string())
|
||||
).underline()
|
||||
);
|
||||
}
|
||||
NostrBech32::EventPointer(ep) => {
|
||||
let mut render_link = true;
|
||||
@ -98,8 +102,12 @@ pub(super) fn render_content(
|
||||
render_profile_link(app, ui, &(*pk).into());
|
||||
}
|
||||
NostrBech32::Relay(url) => {
|
||||
// FIXME
|
||||
ui.label(url.as_bech32_string());
|
||||
// FIXME - we should link to the relay page once we have those
|
||||
ui.label(
|
||||
RichText::new(
|
||||
format!("nostr:{}", url.as_bech32_string())
|
||||
).underline()
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user