]> Untitled Git - lemmy.git/commit
Use serde(skip) instead of skip_serializing, add placeholder values (#3362)
authorNutomic <me@nutomic.com>
Mon, 3 Jul 2023 13:14:01 +0000 (15:14 +0200)
committerGitHub <noreply@github.com>
Mon, 3 Jul 2023 13:14:01 +0000 (15:14 +0200)
commitcb91eedd24a0a5b9c8275309461c886ee9a7b3ef
tree8ce206127c1fb1fc893420fd371c21a995b4d9b9
parent6405761891709cc98271452ac98cccf8219adb6e
Use serde(skip) instead of skip_serializing, add placeholder values (#3362)

* Use serde(skip) instead of skip_serializing

The latter breaks lemmy_crawler as the field is not included in
the Lemmy API, but is required when attempting to parse API responses.
Should only use serde(skip) to avoid this problem

* use option

* add placeholders

* no unwrap
crates/db_schema/src/source/community.rs
crates/db_schema/src/source/mod.rs
crates/db_schema/src/source/person.rs