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

Fix setting reward for comments and displaying reward in profile #30

Merged
merged 6 commits into from
May 21, 2024

Conversation

AstatineAi
Copy link
Contributor

  • In controllers/reward/setcomment.go, User should be preloaded before looking up the comment.
  • In queries.GetProfile, whether or not to display reward should be determined by the querying user, not whether the queried user is an administrator.

@AstatineAi AstatineAi linked an issue May 19, 2024 that may be closed by this pull request
@Clarivy Clarivy requested a review from WAAutoMaton May 19, 2024 13:23
pkg/queries/user.go Outdated Show resolved Hide resolved
pkg/queries/user.go Show resolved Hide resolved
pkg/queries/user.go Outdated Show resolved Hide resolved
pkg/queries/user.go Outdated Show resolved Hide resolved
@Prince213
Copy link
Contributor

controllers.reward.SetComment -> controllers/reward.SetComment

@WAAutoMaton WAAutoMaton merged commit ea1ae15 into master May 21, 2024
1 check passed
@WAAutoMaton WAAutoMaton deleted the reward-fix branch May 21, 2024 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Rank list and user total reward not working
3 participants