fix: add fleet actor for setup experience global activities (#24196)

> Follow up on #23310

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Manual QA for all new/changed functionality
This commit is contained in:
Jahziel Villasana-Espinoza 2024-11-26 18:48:45 -05:00 committed by GitHub
parent 98917e7547
commit 84742c2401
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1385,6 +1385,14 @@ const ActivityItem = ({
? addGravatarUrlToResource({ email: actor_email })
: { gravatar_url: DEFAULT_GRAVATAR_LINK };
if (
!activity.actor_email &&
!activity.actor_full_name &&
!activity.actor_id
) {
activity.actor_full_name = "Fleet";
}
const activityCreatedAt = new Date(activity.created_at);
const indicatePremiumFeature =
isSandboxMode && PREMIUM_ACTIVITIES.has(activity.type);