Skip to content
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

Scroll the user to the comments section when accepting/denying a request #186

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

439bananas
Copy link

No description provided.

Copy link
Member

@Kenny2github Kenny2github left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me know when this is ready for review.

@@ -96,11 +96,17 @@ function isCSRF(&$session, $csrftoken) {
* @param username The Scratch username whose profile is being linked to
* @return string A simple <a> link to the user's profile with the contents also being the username
*/
function linkToScratchProfile(string $username) : string {
function linkToScratchProfile(string $username, bool $scrollToComments) : string {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This parameter is not used by anything.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, that was what i realised after making the pr, but i'm not sure where this function is called when the page opens in a new tab after selecting "submit"... :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pr - needs work prio-low Low Priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants