Fix Post::to_activity07()

This commit is contained in:
Kitaiti Makoto 2022-03-21 06:38:39 +09:00
parent d4018d61d4
commit c37ff54857

View File

@ -454,7 +454,11 @@ impl Post {
.expect("OffsetDateTime"), .expect("OffsetDateTime"),
); );
article.set_summary(&*self.subtitle); article.set_summary(&*self.subtitle);
article.set_tag(AnyBase::from_arbitrary_json(json!(mentions_json))?); article.set_many_tags(
mentions_json
.iter()
.filter_map(|mention_json| AnyBase::from_arbitrary_json(mention_json).ok()),
);
if let Some(media_id) = self.cover_id { if let Some(media_id) = self.cover_id {
let media = Media::get(conn, media_id)?; let media = Media::get(conn, media_id)?;