Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -525,9 +525,9 @@ export class DiscordIntegrationService extends IntegrationServiceBase {
? DiscordIntegrationService.replaceMentions(record.content, record.mentions)
: '',
url: `https://discordapp.com/channels/${channel.guild_id}/${channel.id}/${record.id}`,
channel: channel.name,
channel: parentChannel || channel.name,
attributes: {
parentChannel,
childChannel: parentChannel ? channel.name : undefined,
thread: isThread,
reactions: record.reactions ? record.reactions : [],
attachments: record.attachments ? record.attachments : [],
Expand Down
4 changes: 2 additions & 2 deletions backend/src/types/activityTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,10 @@ export const DEFAULT_ACTIVITY_TYPE_SETTINGS: DefaultActivityTypes = {
[DiscordtoActivityType.THREAD_MESSAGE]: {
display: {
default:
'replied to a message in thread <span class="text-brand-500 truncate max-w-2xs">#{channel}</span> -> <span class="text-brand-500">{attributes.parentChannel}</span>',
'replied to a message in thread <span class="text-brand-500 truncate max-w-2xs">#{channel}</span> -> <span class="text-brand-500">{attributes.childChannel}</span>',
short: 'replied to a message',
channel:
'<span class="text-brand-500 truncate max-w-2xs">thread #{channel}</span> -> <span class="text-brand-500">#{attributes.parentChannel}</span>',
'<span class="text-brand-500 truncate max-w-2xs">thread #{channel}</span> -> <span class="text-brand-500">#{attributes.childChannel}</span>',
},
isContribution: DiscordGrid.message.isContribution,
},
Expand Down