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

Fixup usernames

parent 4e580054
...@@ -29,6 +29,6 @@ ...@@ -29,6 +29,6 @@
"studio.activityAddProjectToStudio": "{profileLink} added the project {projectLink}", "studio.activityAddProjectToStudio": "{profileLink} added the project {projectLink}",
"studio.activityRemoveProjectStudio": "{profileLink} removed the project {projectLink}", "studio.activityRemoveProjectStudio": "{profileLink} removed the project {projectLink}",
"studio.activityUpdateStudio": "{profileLink} made edits to the title, thumbnail, or description", "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}" "studio.activityBecomeOwner": "{promotedProfileLink} was promoted to manager by {promotorProfileLink}"
} }
...@@ -28,8 +28,8 @@ const getComponentForItem = item => { ...@@ -28,8 +28,8 @@ const getComponentForItem = item => {
id="studio.activityAddProjectToStudio" id="studio.activityAddProjectToStudio"
values={{ values={{
profileLink: ( profileLink: (
<a href={`/users/${item.actor_id}`}> <a href={`/users/${item.actor_username}`}>
username {item.actor_username}
</a> </a>
), ),
projectLink: ( projectLink: (
...@@ -54,8 +54,8 @@ const getComponentForItem = item => { ...@@ -54,8 +54,8 @@ const getComponentForItem = item => {
id="studio.activityRemoveProjectStudio" id="studio.activityRemoveProjectStudio"
values={{ values={{
profileLink: ( profileLink: (
<a href={`/users/${item.actor_id}`}> <a href={`/users/${item.actor_username}`}>
username {item.actor_username}
</a> </a>
), ),
projectLink: ( projectLink: (
...@@ -80,8 +80,8 @@ const getComponentForItem = item => { ...@@ -80,8 +80,8 @@ const getComponentForItem = item => {
id="studio.activityUpdateStudio" id="studio.activityUpdateStudio"
values={{ values={{
profileLink: ( profileLink: (
<a href={`/users/${item.actor_id}`}> <a href={`/users/${item.actor_username}`}>
username {item.actor_username}
</a> </a>
) )
}} }}
...@@ -100,14 +100,15 @@ const getComponentForItem = item => { ...@@ -100,14 +100,15 @@ const getComponentForItem = item => {
<FormattedMessage <FormattedMessage
id="studio.activityBecomeCurator" id="studio.activityBecomeCurator"
values={{ values={{
promotedProfileLink: ( // Beware, DB seems to think actor is new curator and username is inviter
<a href={`/users/${item.actor_id}`}> newCuratorProfileLink: (
username <a href={`/users/${item.actor_username}`}>
{item.actor_username}
</a> </a>
), ),
promotorProfileLink: ( inviterProfileLink: (
<a href={`/users/${item.actor_id}`}> <a href={`/users/${item.username}`}>
username {item.username}
</a> </a>
) )
}} }}
...@@ -127,13 +128,13 @@ const getComponentForItem = item => { ...@@ -127,13 +128,13 @@ const getComponentForItem = item => {
id="studio.activityBecomeOwner" id="studio.activityBecomeOwner"
values={{ values={{
promotedProfileLink: ( promotedProfileLink: (
<a href={`/users/${item.actor_id}`}> <a href={`/users/${item.recipient_username}`}>
username {item.recipient_username}
</a> </a>
), ),
promotorProfileLink: ( promotorProfileLink: (
<a href={`/users/${item.actor_id}`}> <a href={`/users/${item.actor_username}`}>
username {item.actor_username}
</a> </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