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

link_shared message_ts field isn't always a number #999

Merged
merged 3 commits into from
Nov 14, 2021
Merged

link_shared message_ts field isn't always a number #999

merged 3 commits into from
Nov 14, 2021

Conversation

toshok
Copy link
Contributor

@toshok toshok commented Nov 10, 2021

This is a one-liner, but a breaking change.

As documented in https://api.slack.com/events/link_shared, the message_ts field will not be a number if the event is generated from an unfurl in the compose message area (the feature was announced here: https://api.slack.com/changelog/2021-08-changes-to-unfurls).

Includes a new test, which is the example payload from the link_shared url above.

Fixes #998

@kanata2
Copy link
Member

kanata2 commented Nov 11, 2021

Thanks! I'll release as soon as possible after merging this.

@kanata2 kanata2 added the bugfix [PR] bugfix label Nov 11, 2021
@kanata2 kanata2 merged commit 792f7ed into slack-go:master Nov 14, 2021
@toshok toshok deleted the message-timestamp-is-string branch November 15, 2021 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The value contained message_ts in LinkShared event is not only a timestamp
2 participants