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

Reporting posts #3

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open

Reporting posts #3

wants to merge 19 commits into from

Conversation

drusepth
Copy link
Member

This is a placeholder PR just to collect all the code we've written to support reporting posts on Notebook.ai. Before an actual upstream PR, we'd want to rewrite all of this as a Thredded plugin.

AKA not to actually be merged.

@drusepth drusepth self-assigned this Aug 30, 2019
@@ -30,6 +30,10 @@ module PostCommon
SELECT MAX(p2.created_at) from #{posts_table_name} p2 WHERE p2.postable_id = #{posts_table_name}.postable_id)
SQL
)

# When we can't load a preloader, return the results as-is
return result if preloader.empty?
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not yet sure what the preloaders are for or why we can no longer find them when a post has been reported. This is a hack that needs addressed.

@drusepth drusepth added the enhancement New feature or request label Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants