diff --git a/src/assets/symbols.svg b/src/assets/symbols.svg
index 6e9c6ef9..dba5dbe6 100644
--- a/src/assets/symbols.svg
+++ b/src/assets/symbols.svg
@@ -142,8 +142,8 @@
-
-
+
+
diff --git a/src/shared/components/community/community-link.tsx b/src/shared/components/community/community-link.tsx
index 83194caa..23cdc73c 100644
--- a/src/shared/components/community/community-link.tsx
+++ b/src/shared/components/community/community-link.tsx
@@ -21,20 +21,19 @@ export class CommunityLink extends Component {
render() {
const community = this.props.community;
- let name_: string, title: string, link: string;
+ let title: string, link: string;
const local = community.local === null ? true : community.local;
+ const domain = hostname(community.actor_id);
if (local) {
- name_ = community.name;
title = community.title;
link = `/c/${community.name}`;
} else {
- const domain = hostname(community.actor_id);
- name_ = `${community.name}@${domain}`;
+ const name_ = `${community.name}@${domain}`;
title = `${community.title}@${domain}`;
link = !this.props.realLink ? `/c/${name_}` : community.actor_id;
}
- const apubName = `!${name_}`;
+ const apubName = `!${community.name}@${domain}`;
const displayName = this.props.useApubName ? apubName : title;
return !this.props.realLink ? (
';
};
+ const defaultLinkRenderer =
+ md.renderer.rules.link_open ||
+ function (tokens, idx, options, _env, self) {
+ return self.renderToken(tokens, idx, options);
+ };
+ md.renderer.rules.link_open = function (
+ tokens: Token[],
+ idx: number,
+ options: MarkdownIt.Options,
+ env: any,
+ self: Renderer,
+ ) {
+ tokens[idx].attrPush(["rel", relTags]);
+ return defaultLinkRenderer(tokens, idx, options, env, self);
+ };
}
export function setupEmojiDataModel(custom_emoji_views: CustomEmojiView[]) {