Skip to content
Snippets Groups Projects
Unverified Commit 27e16349 authored by Jayesh Jain's avatar Jayesh Jain Committed by GitHub
Browse files

fix: remove link appearing in quotes preview (#28443)

parent 34cddff9
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ export const QuoteAttachment = ({ attachment }: QuoteAttachmentProps): ReactElem
</Box>
)}
</AttachmentAuthor>
{attachment.md ? <MessageContentBody md={attachment.md} /> : attachment.text}
{attachment.md ? <MessageContentBody md={attachment.md} /> : attachment.text.substring(attachment.text.indexOf('\n') + 1)}
{attachment.attachments && (
<AttachmentInner>
<Attachments attachments={attachment.attachments} />
......
......@@ -6,6 +6,7 @@ import { getUserAvatarURL } from '../app/utils/lib/getUserAvatarURL';
export function createQuoteAttachment(message: IMessage | ITranslatedMessage, messageLink: string) {
return {
text: message.msg,
md: message.md,
...(isTranslatedMessage(message) && { translations: message?.translations }),
message_link: messageLink,
author_name: message.alias || message.u.username,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment