Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AO3-5860 Prevent leaving comments or kudos when logged in as admin #4378
AO3-5860 Prevent leaving comments or kudos when logged in as admin #4378
Changes from 44 commits
cc10ee2
1fba796
1ee02e0
9142a82
12c31ba
7aa02d3
4ed8ade
33b89e0
0228eed
731229a
d43483b
60da2d0
f33f7d3
f50f30b
f876634
1416d90
2bbe0f8
05d8843
485ff75
dde9452
bac38ce
45d007d
75ba8e7
5d79d12
987c85e
21a2048
68c056b
a1c39fa
face994
6a402bd
24c925b
ba071ea
079c090
bdb5b41
5ddfb2e
70f4e2a
8923da3
8ab8775
493d6fa
5e8e94f
0ec17bf
9266392
b329103
7155047
9c7a080
55b0885
ce366d6
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure on this, but making a note anyway:
Normally we prefer putting variables into the translation string with interpolation instead concatenating in the view files. But that would make the translation not reusable for the multiple pseud case and the formatting looks it'd be a bit awkward to fit in. So I think this is fine to keep like this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the behavior like with
format: :js
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely not great, as
<html><body>You are being <a href="http://www.example.com/">redirected</a>.</body></html>
is not valid JSON.Could be handled more nicely like 5ddfb2e... But seems a bit overkill for what I understand is an edge case (maybe I'm missing something?), where the user clicks in the Kudos button in one tab after having logged as admin in another.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that does seem like overkill for the situation. Maybe just add a test showing no kudos is created and we'll leave it at that?