Compare commits
No commits in common. "6f5b494a25706cb735c7afe8a76cfc63ad0631a3" and "2b4fb3bd62bd829ce14bbe6f9b448f9b6bc6bd5b" have entirely different histories.
6f5b494a25
...
2b4fb3bd62
2 changed files with 3 additions and 5 deletions
|
@ -36,10 +36,8 @@ impl BatchFillable for Vec<RichActivity> {
|
||||||
}
|
}
|
||||||
for element in self.iter_mut() {
|
for element in self.iter_mut() {
|
||||||
if let Some(ref object) = element.object {
|
if let Some(ref object) = element.object {
|
||||||
if let Some(v) = map.get(&object.internal) {
|
if let Some(v) = map.remove(&object.internal) {
|
||||||
// TODO wasteful because we clone every time, but we cant do remove otherwise multiple
|
element.accept(v, tx).await?;
|
||||||
// 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>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
{post}
|
{post}
|
||||||
<div class="mb-s ml-1 rev">
|
<div class="mt-s ml-1 rev">
|
||||||
{tag_badges}
|
{tag_badges}
|
||||||
{audience_badge}
|
{audience_badge}
|
||||||
<span style="white-space:nowrap">
|
<span style="white-space:nowrap">
|
||||||
|
|
Loading…
Reference in a new issue