fix: include a link to hashtag collection
i don't think this is necessary but mastodon seems to not recognize my hashtags if i don't do this?
This commit is contained in:
parent
1762764862
commit
a8808c3a95
1 changed files with 2 additions and 1 deletions
|
@ -24,11 +24,12 @@ pub struct RichHashtag {
|
|||
}
|
||||
|
||||
impl IntoActivityPub for RichHashtag {
|
||||
fn into_activity_pub_json(self, _ctx: &crate::Context) -> serde_json::Value {
|
||||
fn into_activity_pub_json(self, ctx: &crate::Context) -> serde_json::Value {
|
||||
use apb::LinkMut;
|
||||
apb::new()
|
||||
.set_name(Some(format!("#{}", self.hash.name)))
|
||||
.set_link_type(Some(apb::LinkType::Hashtag))
|
||||
.set_href(Some(crate::url!(ctx, "/tags/{}", self.hash.name)))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue