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

Allow scheduling publication of Full Topic first post #101

Merged

Conversation

angusmcleod
Copy link
Contributor

No description provided.

@@ -32,7 +32,6 @@ def unschedule
protected

def ensure_first_post
return render_post_error("first_post_not_enabled", 403) unless @post.activity_pub_first_post
render_post_error("not_first_post", 422) unless @post.activity_pub_is_first_post?
Copy link
Contributor

Choose a reason for hiding this comment

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

      render_post_error("not_first_post", 422) unless @post.activity_pub_is_first_post?

I'm not sure this PR is opening up publication scheduling to all posts, looks like we still check for @post.activity_pub_is_first_post?.

Or I guess, it opens up scheduling for the first post for categories with Full Topic publication configured?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, we don't want to open it up to replies just yet as that introduces other issues. That'll be a separate PR. This is the first step, i.e. allowing for scheduling Full Topics if the entire topic is not yet published.

@pmusaraj pmusaraj changed the title Remove first post restriction on publication scheduling Allow scheduling publication of Full Topic first post May 17, 2024
@pmusaraj pmusaraj merged commit 37b8ce1 into discourse:main May 17, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants