Don't add FEP-e232 link tags to outgoing activities

This commit is contained in:
silverpill 2022-10-05 18:52:06 +00:00
parent c7499cb0dc
commit 9bc53b6734

View file

@ -124,13 +124,14 @@ pub fn build_note(
for linked in &post.linked { for linked in &post.linked {
// Build FEP-e232 object link // Build FEP-e232 object link
let link_href = linked.get_object_id(instance_url); let link_href = linked.get_object_id(instance_url);
let tag = Tag { let _tag = Tag {
name: Some(format!("RE: {}", link_href)), name: Some(format!("RE: {}", link_href)),
tag_type: LINK.to_string(), tag_type: LINK.to_string(),
href: Some(link_href), href: Some(link_href),
media_type: Some(AP_MEDIA_TYPE.to_string()), media_type: Some(AP_MEDIA_TYPE.to_string()),
}; };
tags.push(tag); // TODO: fix tag processing bug in Pleroma
// tags.push(tag);
}; };
let maybe_quote_url = post.linked.get(0) let maybe_quote_url = post.linked.get(0)
.map(|linked| linked.get_object_id(instance_url)); .map(|linked| linked.get_object_id(instance_url));