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

feat: do not post thread reply if it was reacted with scrappy-retry #469

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

JosiasAurel
Copy link
Contributor

@JosiasAurel JosiasAurel commented Oct 27, 2023

Prevent Scrappy from sending a scrapbook update if it received a scrappy-retry reaction AND it is a reply to a thread

@JosiasAurel JosiasAurel changed the title feat: do not post update if it's a reply to a thread feat: do not post thread reply if it was reacted with scrappy-retry Oct 27, 2023
@@ -58,7 +58,7 @@ export default async ({ event }) => {
if (
reaction === "scrappy-retry" &&
channel == process.env.CHANNEL &&
message
message && !message.thread_ts
Copy link
Member

@Muirrum Muirrum Oct 27, 2023

Choose a reason for hiding this comment

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

Will this have unintended behavior if there's already a thread on a message when :scrappy-retry: is reacted? (I'm thinking in non-#scrapbook channels where people might scrapbook)

Copy link
Contributor Author

@JosiasAurel JosiasAurel Oct 27, 2023

Choose a reason for hiding this comment

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

This does not have such an effect! You're welcome to test this though

Copy link
Contributor

@grymmy grymmy left a comment

Choose a reason for hiding this comment

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

lgtm

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.

3 participants