Skip to content

Commit

Permalink
For open answer (model answer), fix the way actors are shown if stude…
Browse files Browse the repository at this point in the history
…ntid

mode is 1

 - Strip 'mailto:'
  • Loading branch information
Tom Reijnders committed Oct 2, 2019
1 parent 71c4f4e commit 5efbff6
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -1439,10 +1439,10 @@
}
else if (typeof data[i].actor.mbox != 'undefined')
{
user = data[i].actor.mbox;
user = data[i].actor.mbox.substr(7);
}
else if (typeof data[i].actor.mbox_sha1 != 'undefined') {
user = data[i].actor.mbox_sha1;
user = data[i].actor.mbox_sha1.substr(7);
}
else if (typeof data[i].actor.account != 'undefined' && typeof data[i].actor.account.name != 'undefined' ){
user = data[i].actor.account.name;
Expand Down

0 comments on commit 5efbff6

Please sign in to comment.