Compare commits
2 commits
2b4fb3bd62
...
6f5b494a25
Author | SHA1 | Date | |
---|---|---|---|
6f5b494a25 | |||
a901ae7656 |
2 changed files with 5 additions and 3 deletions
|
@ -36,8 +36,10 @@ impl BatchFillable for Vec<RichActivity> {
|
|||
}
|
||||
for element in self.iter_mut() {
|
||||
if let Some(ref object) = element.object {
|
||||
if let Some(v) = map.remove(&object.internal) {
|
||||
element.accept(v, tx).await?;
|
||||
if let Some(v) = map.get(&object.internal) {
|
||||
// TODO wasteful because we clone every time, but we cant do remove otherwise multiple
|
||||
// identical objects wont get filled (for example, a post boosted twice)
|
||||
element.accept(v.clone(), tx).await?;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -162,7 +162,7 @@ pub fn Object(
|
|||
</tr>
|
||||
</table>
|
||||
{post}
|
||||
<div class="mt-s ml-1 rev">
|
||||
<div class="mb-s ml-1 rev">
|
||||
{tag_badges}
|
||||
{audience_badge}
|
||||
<span style="white-space:nowrap">
|
||||
|
|
Loading…
Reference in a new issue