Commit 02a5c0b4 authored by Paul Kaplan's avatar Paul Kaplan

Fixup usernames

parent 4e580054
......@@ -29,6 +29,6 @@
"studio.activityAddProjectToStudio": "{profileLink} added the project {projectLink}",
"studio.activityRemoveProjectStudio": "{profileLink} removed the project {projectLink}",
"studio.activityUpdateStudio": "{profileLink} made edits to the title, thumbnail, or description",
"studio.activityBecomeCurator": "{promotedProfileLink} accepted an invitation from {promotorProfileLink} to curate this studio",
"studio.activityBecomeCurator": "{newCuratorProfileLink} accepted an invitation from {inviterProfileLink} to curate this studio",
"studio.activityBecomeOwner": "{promotedProfileLink} was promoted to manager by {promotorProfileLink}"
}
......@@ -28,8 +28,8 @@ const getComponentForItem = item => {
id="studio.activityAddProjectToStudio"
values={{
profileLink: (
<a href={`/users/${item.actor_id}`}>
username
<a href={`/users/${item.actor_username}`}>
{item.actor_username}
</a>
),
projectLink: (
......@@ -54,8 +54,8 @@ const getComponentForItem = item => {
id="studio.activityRemoveProjectStudio"
values={{
profileLink: (
<a href={`/users/${item.actor_id}`}>
username
<a href={`/users/${item.actor_username}`}>
{item.actor_username}
</a>
),
projectLink: (
......@@ -80,8 +80,8 @@ const getComponentForItem = item => {
id="studio.activityUpdateStudio"
values={{
profileLink: (
<a href={`/users/${item.actor_id}`}>
username
<a href={`/users/${item.actor_username}`}>
{item.actor_username}
</a>
)
}}
......@@ -100,14 +100,15 @@ const getComponentForItem = item => {
<FormattedMessage
id="studio.activityBecomeCurator"
values={{
promotedProfileLink: (
<a href={`/users/${item.actor_id}`}>
username
// Beware, DB seems to think actor is new curator and username is inviter
newCuratorProfileLink: (
<a href={`/users/${item.actor_username}`}>
{item.actor_username}
</a>
),
promotorProfileLink: (
<a href={`/users/${item.actor_id}`}>
username
inviterProfileLink: (
<a href={`/users/${item.username}`}>
{item.username}
</a>
)
}}
......@@ -127,13 +128,13 @@ const getComponentForItem = item => {
id="studio.activityBecomeOwner"
values={{
promotedProfileLink: (
<a href={`/users/${item.actor_id}`}>
username
<a href={`/users/${item.recipient_username}`}>
{item.recipient_username}
</a>
),
promotorProfileLink: (
<a href={`/users/${item.actor_id}`}>
username
<a href={`/users/${item.actor_username}`}>
{item.actor_username}
</a>
)
}}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment