feat(web): super crude way to see emoji reacts
This commit is contained in:
parent
d20ce17277
commit
d3987680d8
1 changed files with 2 additions and 0 deletions
|
@ -15,6 +15,7 @@ pub fn ActivityLine(activity: crate::Object, children: Children) -> impl IntoVie
|
|||
});
|
||||
let actor_id = activity.actor().id().unwrap_or_default();
|
||||
let actor = cache::OBJECTS.get_or(&actor_id, serde_json::Value::String(actor_id.clone()).into());
|
||||
let content = activity.content().unwrap_or_default();
|
||||
let kind = activity.activity_type().unwrap_or(apb::ActivityType::Activity);
|
||||
let href = match kind {
|
||||
apb::ActivityType::Follow => Uri::web(U::Actor, &object_id),
|
||||
|
@ -28,6 +29,7 @@ pub fn ActivityLine(activity: crate::Object, children: Children) -> impl IntoVie
|
|||
<ActorStrip object=actor />
|
||||
</td>
|
||||
<td class="rev">
|
||||
{content}" "
|
||||
<code class="color" title={activity.published().ok().map(|x| x.to_rfc2822())} >
|
||||
{children()}
|
||||
<a class="upub-title clean" title={object_id} href={href} >
|
||||
|
|
Loading…
Reference in a new issue