Merge pull request #1924 from LemmyNet/fix-1914

Fix build error in #1914
pull/1930/head
Dessalines 2021-11-19 12:42:48 -05:00 committed by GitHub
commit ffc898a7b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ impl ActivityHandler for AnnounceActivity {
// TODO: this can probably be implemented in a cleaner way
match self.object {
// 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_data: ActivityCommonFields = serde_json::from_value(object_value.to_owned())?;