mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 11:21:32 +00:00
Fix build error in #1914
This commit is contained in:
parent
6d35508f08
commit
3e4fe89a45
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ impl ActivityHandler for AnnounceActivity {
|
||||||
// TODO: this can probably be implemented in a cleaner way
|
// TODO: this can probably be implemented in a cleaner way
|
||||||
match self.object {
|
match self.object {
|
||||||
// Dont insert these into activities table, as they are not activities.
|
// Dont insert these into activities table, as they are not activities.
|
||||||
AnnouncableActivities::Page(_) | AnnouncableActivities::Note(_) => {}
|
AnnouncableActivities::Page(_) => {}
|
||||||
_ => {
|
_ => {
|
||||||
let object_value = serde_json::to_value(&self.object)?;
|
let object_value = serde_json::to_value(&self.object)?;
|
||||||
let object_data: ActivityCommonFields = serde_json::from_value(object_value.to_owned())?;
|
let object_data: ActivityCommonFields = serde_json::from_value(object_value.to_owned())?;
|
||||||
|
|
Loading…
Reference in a new issue