mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-26 13:31:02 +00:00
Fix Post::to_activity07()
This commit is contained in:
parent
d4018d61d4
commit
c37ff54857
1 changed files with 5 additions and 1 deletions
|
@ -454,7 +454,11 @@ impl Post {
|
|||
.expect("OffsetDateTime"),
|
||||
);
|
||||
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 {
|
||||
let media = Media::get(conn, media_id)?;
|
||||
|
|
Loading…
Reference in a new issue