Compare commits

...

2 commits

Author SHA1 Message Date
c8b3774905
fix(web): nicer refresh arrow 2024-06-22 06:13:27 +02:00
669240b87f
fix: show updated only if different from published 2024-06-22 06:13:15 +02:00
3 changed files with 3 additions and 2 deletions

View file

@ -168,6 +168,7 @@ impl Model {
.set_url(apb::Node::link(i.clone())) .set_url(apb::Node::link(i.clone()))
))) )))
.set_published(Some(self.published)) .set_published(Some(self.published))
.set_updated(if self.updated != self.published { Some(self.updated) } else { None })
.set_preferred_username(Some(&self.preferred_username)) .set_preferred_username(Some(&self.preferred_username))
.set_statuses_count(Some(self.statuses_count as u64)) .set_statuses_count(Some(self.statuses_count as u64))
.set_followers_count(Some(self.followers_count as u64)) .set_followers_count(Some(self.followers_count as u64))

View file

@ -155,7 +155,7 @@ impl Model {
.set_conversation(apb::Node::maybe_link(self.context.clone())) // duplicate context for mastodon .set_conversation(apb::Node::maybe_link(self.context.clone())) // duplicate context for mastodon
.set_in_reply_to(apb::Node::maybe_link(self.in_reply_to.clone())) .set_in_reply_to(apb::Node::maybe_link(self.in_reply_to.clone()))
.set_published(Some(self.published)) .set_published(Some(self.published))
.set_updated(Some(self.updated)) .set_updated(if self.updated != self.published { Some(self.updated) } else { None })
.set_audience(apb::Node::maybe_link(self.audience)) .set_audience(apb::Node::maybe_link(self.audience))
.set_to(apb::Node::links(self.to.0.clone())) .set_to(apb::Node::links(self.to.0.clone()))
.set_bto(apb::Node::Empty) .set_bto(apb::Node::Empty)

View file

@ -213,7 +213,7 @@ fn Scrollable() -> impl IntoView {
<a class="breadcrumb mr-1" href="javascript:history.back()" ><b>"<<"</b></a> <a class="breadcrumb mr-1" href="javascript:history.back()" ><b>"<<"</b></a>
<b>{crate::NAME}</b>" :: "{breadcrumb} <b>{crate::NAME}</b>" :: "{breadcrumb}
{move || relevant_timeline.get().map(|tl| view! { {move || relevant_timeline.get().map(|tl| view! {
<a class="breadcrumb ml-1" href="#" on:click=move|_| tl.refresh() ><span class="emoji">"♻️"</span></a> <a class="breadcrumb ml-1" href="#" on:click=move|_| tl.refresh() ><span class="emoji">""</span></a>
})} })}
</div> </div>
<Outlet /> <Outlet />