Skip to content

Fix status_follow and status_unfollow assertions to accept arrays of user IDs#91

Merged
DannyIsYog merged 1 commit into
masterfrom
fs/fix-assertion-status
Mar 5, 2026
Merged

Fix status_follow and status_unfollow assertions to accept arrays of user IDs#91
DannyIsYog merged 1 commit into
masterfrom
fs/fix-assertion-status

Conversation

@DannyIsYog
Copy link
Copy Markdown
Contributor

@DannyIsYog DannyIsYog commented Mar 4, 2026

Fixes an issue reported on the forums where status_follow and status_unfollow were asserting that user_ids (and usernames) must be a string, when they should accept a table (array of strings). This caused an assertion error when users passed a list of IDs as shown in the documentation.

Updated assertions:

  • status_follow: user_ids and usernames now assert table instead of string
  • status_unfollow: user_ids now asserts table instead of string

Fixes: https://forum.heroiclabs.com/t/following-users-is-not-working/6516

Fixes #90

Copy link
Copy Markdown
Collaborator

@britzl britzl left a comment

Choose a reason for hiding this comment

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

Thanks!

@DannyIsYog DannyIsYog merged commit 6640a74 into master Mar 5, 2026
3 checks passed
@britzl britzl deleted the fs/fix-assertion-status branch March 18, 2026 08:11
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.

Status Follow Assertion Bug

3 participants