SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 68f45800 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Correct wrong link bug in comment on submission ack email

parent 584ccf67
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,7 @@ def vet_submitted_comment_ack(request, comment_id): ...@@ -48,7 +48,7 @@ def vet_submitted_comment_ack(request, comment_id):
elif comment.submission is not None: elif comment.submission is not None:
email_text += (comment.submission.title + ' by ' + comment.submission.author_list email_text += (comment.submission.title + ' by ' + comment.submission.author_list
+ ' at Submission page https://scipost.org/submission/' + ' at Submission page https://scipost.org/submission/'
+ str(comment.submission.id)) + comment.submission.arxiv_identifier_w_vn_nr)
comment.submission.latest_activity = timezone.now() comment.submission.latest_activity = timezone.now()
comment.submission.save() comment.submission.save()
if not comment.is_author_reply: if not comment.is_author_reply:
...@@ -229,7 +229,7 @@ def express_opinion(request, comment_id, opinion): ...@@ -229,7 +229,7 @@ def express_opinion(request, comment_id, opinion):
comment = get_object_or_404(Comment, pk=comment_id) comment = get_object_or_404(Comment, pk=comment_id)
comment.update_opinions (contributor.id, opinion) comment.update_opinions (contributor.id, opinion)
if comment.submission is not None: if comment.submission is not None:
return HttpResponseRedirect('/submission/' + str(comment.submission.id) + return HttpResponseRedirect('/submission/' + comment.submission.arxiv_identifier_w_vn_nr +
'/#comment_id' + str(comment.id)) '/#comment_id' + str(comment.id))
if comment.commentary is not None: if comment.commentary is not None:
return HttpResponseRedirect('/commentary/' + str(comment.commentary.arxiv_or_DOI_string) + return HttpResponseRedirect('/commentary/' + str(comment.commentary.arxiv_or_DOI_string) +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment