mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 17:45:52 -05:00
Add becomehost notification to the activity feed
This commit is contained in:
parent
7e1eb3a2f8
commit
aec365c8db
2 changed files with 40 additions and 0 deletions
|
@ -87,6 +87,8 @@
|
||||||
"studio.activityBecomeCurator": "{newCuratorProfileLink} accepted an invitation from {inviterProfileLink} to curate this studio",
|
"studio.activityBecomeCurator": "{newCuratorProfileLink} accepted an invitation from {inviterProfileLink} to curate this studio",
|
||||||
"studio.activityRemoveCurator": "{removerProfileLink} removed the curator {removedProfileLink}",
|
"studio.activityRemoveCurator": "{removerProfileLink} removed the curator {removedProfileLink}",
|
||||||
"studio.activityBecomeOwner": "{promotedProfileLink} was promoted to manager by {promotorProfileLink}",
|
"studio.activityBecomeOwner": "{promotedProfileLink} was promoted to manager by {promotorProfileLink}",
|
||||||
|
"studio.activityBecomeHost": "{newHostProfileLink} was made the studio host by {actorProfileLink}",
|
||||||
|
"studio.activityBecomeHostAdminActor": "{newHostProfileLink} was made the studio host by a Scratch Team member.",
|
||||||
|
|
||||||
"studio.lastUpdated": "Updated {lastUpdatedDate, date, medium}",
|
"studio.lastUpdated": "Updated {lastUpdatedDate, date, medium}",
|
||||||
"studio.followerCount": "{followerCount} followers",
|
"studio.followerCount": "{followerCount} followers",
|
||||||
|
|
|
@ -167,6 +167,44 @@ const getComponentForItem = item => {
|
||||||
/>
|
/>
|
||||||
</SocialMessage>
|
</SocialMessage>
|
||||||
);
|
);
|
||||||
|
case 'becomehoststudio':
|
||||||
|
return (
|
||||||
|
<SocialMessage
|
||||||
|
datetime={item.datetime_created}
|
||||||
|
iconSrc="/svgs/studio/activity-curator.svg"
|
||||||
|
iconAlt="curator activity icon"
|
||||||
|
imgClassName="studio-activity-icon"
|
||||||
|
key={item.id}
|
||||||
|
>
|
||||||
|
{item.admin_actor ?
|
||||||
|
<FormattedMessage
|
||||||
|
id="studio.activityBecomeHostAdminActor"
|
||||||
|
values={{
|
||||||
|
newHostProfileLink: (
|
||||||
|
<a href={`/users/${item.recipient_username}`}>
|
||||||
|
{item.recipient_username}
|
||||||
|
</a>
|
||||||
|
)
|
||||||
|
}}
|
||||||
|
/> :
|
||||||
|
<FormattedMessage
|
||||||
|
id="studio.activityBecomeHost"
|
||||||
|
values={{
|
||||||
|
newHostProfileLink: (
|
||||||
|
<a href={`/users/${item.recipient_username}`}>
|
||||||
|
{item.recipient_username}
|
||||||
|
</a>
|
||||||
|
),
|
||||||
|
actorProfileLink: (
|
||||||
|
<a href={`/users/${item.recipient_username}`}>
|
||||||
|
{item.actor_username}
|
||||||
|
</a>
|
||||||
|
)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
</SocialMessage>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue