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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

View mod history for a post or comment. Fixes #4162 #4491

Merged
merged 1 commit into from Mar 4, 2024

Conversation

dessalines
Copy link
Member

No description provided.

@Nutomic
Copy link
Member

Nutomic commented Mar 4, 2024

Doing a separate GetModlog call for each post/comment seems extremely inefficient. I think it would be much better if we could include this data in PostView/CommentView.

@dessalines
Copy link
Member Author

That would add a lot more joins to various mod tables, probably hurt performance, and would also be potentially pointless data coming back. On-demand is probably better for this one.

The idea was to use the removed field on a post or comment, to show a button, which could then fetch and show mod history for an item. Or just always show the button.

@Nutomic
Copy link
Member

Nutomic commented Mar 4, 2024

Alright. The changes here are very simple so thats definitely a big advantage over using joins. Do you want to merge it directly?

@dessalines
Copy link
Member Author

Yeah sure, its not breaking.

@dessalines dessalines merged commit 65da4e7 into main Mar 4, 2024
2 checks passed
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.

None yet

2 participants