diff options
author | Vitaly Takmazov | 2021-08-22 14:52:40 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2021-08-22 14:52:40 +0300 |
commit | f7ebc8831b032196e6695fa22647717a7bf2b55c (patch) | |
tree | bb05cc5aba7595de6f1f90fc7c2f558e28196239 /src/main/java/com/juick/www/api/activity/model | |
parent | d918967281652ead0130c5dbef663e82003d4393 (diff) |
ActivityPub: fix empty object serialization
Diffstat (limited to 'src/main/java/com/juick/www/api/activity/model')
-rw-r--r-- | src/main/java/com/juick/www/api/activity/model/Context.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/com/juick/www/api/activity/model/Context.java b/src/main/java/com/juick/www/api/activity/model/Context.java index f5d95d24..66259b7b 100644 --- a/src/main/java/com/juick/www/api/activity/model/Context.java +++ b/src/main/java/com/juick/www/api/activity/model/Context.java @@ -19,6 +19,7 @@ package com.juick.www.api.activity.model; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.juick.www.api.activity.helpers.ContextTypeFilter; import com.juick.www.api.activity.helpers.LinkValueDeserializer; import com.juick.www.api.activity.model.activities.*; import com.juick.www.api.activity.model.objects.*; @@ -78,6 +79,7 @@ public class Context { this.id = id; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = ContextTypeFilter.class) public String getType() { return getClass().getSimpleName(); } |