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

[Bug] channel-matches-any Condition Ignores Forums #76

Open
1 of 3 tasks
EternalllZM opened this issue Oct 22, 2023 · 2 comments
Open
1 of 3 tasks

[Bug] channel-matches-any Condition Ignores Forums #76

EternalllZM opened this issue Oct 22, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@EternalllZM
Copy link

EternalllZM commented Oct 22, 2023

Cog

  • Defender
  • Index
  • Sbansync

Describe the bug
When using the channel-matches-any condition with a forum channel ID as the value, it disregards the condition and returns false. This issue extends to threads created within a channel when the parent channel's ID is specified in a condition.

To Reproduce
Steps to reproduce the behavior:

  1. Create a rule with a channel-matches-any condition targeting a forum channel.
  2. Attempt to execute actions based on conditions matching the forum channel.
  3. No actions execute, as if the channel-matches-any is false (a false negative).

Expected behavior
The channel-matches-any condition should execute as the forum channel ID is specified in the condition.

Rules targeting the parent channel should apply to threads within that channel as well. This issue is exacerbated with forum channels, as there is no "main" channel to apply to, rendering this condition entirely useless.

For those who are experiencing this issue and need forum channel matching, the only workaround is to create a rule that matches the category in which the channel resides in, then use if-not: conditions to specify every other channel in the category except the forum channel.

@EternalllZM EternalllZM added the bug Something isn't working label Oct 22, 2023
@EternalllZM EternalllZM changed the title [Bug] Channel Matches Condition Ignores Threads/Forum Posts [Bug] Channel Matches Condition Ignores Forums Jul 28, 2024
@EternalllZM EternalllZM changed the title [Bug] Channel Matches Condition Ignores Forums [Bug] channel-matches-any Condition Ignores Forums Jul 28, 2024
@EternalllZM
Copy link
Author

So after a bit more testing, you can actually match the thread ID of a forum post and a rule will action only on that thread in that forum channel.

So what is missing is the ability to target the parent channel in order to affect all forum posts instead of just a single one. Both behaviors should exist for more flexibility.

@Twentysix26
Copy link
Owner

Twentysix26 commented Oct 4, 2024

Using compare + parent channel id as a workaround seems to cover all cases:
- compare: ["$parent_id", "==", "0123456789"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants