From e29da5675854fff1a526e63a356b8e77db676c18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uro=C5=A1=20Marolt?= Date: Fri, 16 Oct 2026 13:45:34 +0200 Subject: [PATCH] fix: describe mention activities as mentions of the project MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mention activities read "mentioned you on Reddit" or "mentioned you in a tweet", but in CDP they are mentions of an LF project, whether they come from Octolens or from a project's connected X/Twitter account. The display and short labels now say "mentioned the project". Refs linuxfoundation/lfx-cdp-insights-ops#748 Signed-off-by: Uroš Marolt --- .../src/integrations/activityTypes.ts | 16 ++++++++-------- .../src/integrations/prettyActivityTypes.ts | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/services/libs/integrations/src/integrations/activityTypes.ts b/services/libs/integrations/src/integrations/activityTypes.ts index b6e5587a70..8f3d672400 100644 --- a/services/libs/integrations/src/integrations/activityTypes.ts +++ b/services/libs/integrations/src/integrations/activityTypes.ts @@ -130,8 +130,8 @@ const defaultDiscourseFormatter = (activity) => { const mentionActivityType = (platformLabel: string) => ({ display: { - default: `mentioned you on ${platformLabel}`, - short: 'mentioned you', + default: `mentioned the project on ${platformLabel}`, + short: 'mentioned the project', channel: '', }, calculateSentiment: true, @@ -340,8 +340,8 @@ export const DEFAULT_ACTIVITY_TYPE_SETTINGS: DefaultActivityTypes = { }, [GithubActivityType.MENTION]: { display: { - default: 'mentioned you on GitHub', - short: 'mentioned you', + default: 'mentioned the project on GitHub', + short: 'mentioned the project', channel: '', }, calculateSentiment: true, @@ -720,8 +720,8 @@ export const DEFAULT_ACTIVITY_TYPE_SETTINGS: DefaultActivityTypes = { }, [LinkedinActivityType.MENTION]: { display: { - default: 'mentioned you on LinkedIn', - short: 'mentioned you', + default: 'mentioned the project on LinkedIn', + short: 'mentioned the project', channel: '', }, calculateSentiment: true, @@ -801,8 +801,8 @@ export const DEFAULT_ACTIVITY_TYPE_SETTINGS: DefaultActivityTypes = { }, [TwitterActivityType.MENTION]: { display: { - default: 'mentioned you in a tweet', - short: 'mentioned you', + default: 'mentioned the project on X/Twitter', + short: 'mentioned the project', channel: '', }, calculateSentiment: true, diff --git a/services/libs/integrations/src/integrations/prettyActivityTypes.ts b/services/libs/integrations/src/integrations/prettyActivityTypes.ts index e65bea4709..8a85c52d80 100644 --- a/services/libs/integrations/src/integrations/prettyActivityTypes.ts +++ b/services/libs/integrations/src/integrations/prettyActivityTypes.ts @@ -49,7 +49,7 @@ export const prettyActivityTypes = { [PlatformType.TWITTER]: { contributed_to_community: 'contributed to community', joined_community: 'joined community', - mention: 'mentioned you in a tweet', + mention: 'mentioned the project on X/Twitter', hashtag: 'posted a tweet', follow: 'followed you', },