Skip to content

Commit

Permalink
Update groups.rs
Browse files Browse the repository at this point in the history
target_id can be none for group join events
  • Loading branch information
SheaFoxx authored Aug 2, 2024
1 parent 5583804 commit 96b9677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/model/groups.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ pub struct GroupAuditLog {
/// The display name of the actor.
pub actor_displayname: Option<String>,
/// The unique identifier of the target of the action.
#[serde(with = "either::serde_untagged")]
pub target_id: Either<id::User, id::Instance>,
#[serde(with = "either::serde_untagged_optional")]
pub target_id: Option<Either<id::User, id::Instance>>,
/// The type of event captured in the audit log.
pub event_type: String,
/// The description of the event captured in the audit log.
Expand Down

0 comments on commit 96b9677

Please sign in to comment.