Skip to content

fix(stream): stop discarding rich message parameters - #2910

Open
solracsf wants to merge 1 commit into
masterfrom
fix/rich-message-parameters
Open

fix(stream): stop discarding rich message parameters#2910
solracsf wants to merge 1 commit into
masterfrom
fix/rich-message-parameters

Conversation

@solracsf

@solracsf solracsf commented Sep 7, 2026

Copy link
Copy Markdown
Member

PHP encodes an empty parameter map as [] and a filled one as an object, so both getters have to normalise the empty-array case. subjectRichObjects does. messageRichObjects had the test negated, so it returned an empty map whenever parameters were present, and an array when they were not.

The consumers are CommentActivity and GenericActivity, so any activity whose message carries rich parameters — a comment with a mention, for instance — rendered its raw {placeholder} tokens instead of substituting them.

One character in the fix; the test is the point.

PHP encodes an empty parameter map as `[]` and a filled one as an object, so
both getters have to normalise the empty-array case. `subjectRichObjects`
did; `messageRichObjects` had the test negated, so it returned an empty map
whenever parameters were present and an array when they were not.

The consumers are CommentActivity and GenericActivity, so any activity whose
message carried rich parameters - a comment with a mention, for instance -
rendered its raw {placeholder} tokens instead of substituting them.

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
@codecov

codecov Bot commented Sep 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

1 participant