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

Fix fetching captions #646

Merged
merged 1 commit into from
Feb 29, 2024
Merged

Fix fetching captions #646

merged 1 commit into from
Feb 29, 2024

Conversation

streamer45
Copy link
Contributor

Summary

Since mattermost/mattermost#26239 permissions checks on files require a channel ID to be set so it's not sufficient to use the post ID.

@streamer45 streamer45 added the 2: Dev Review Requires review by a core committer label Feb 29, 2024
@streamer45 streamer45 added this to the v0.25.0 / MM 9.7 milestone Feb 29, 2024
@streamer45 streamer45 self-assigned this Feb 29, 2024
@@ -327,7 +327,7 @@ func (p *Plugin) handleBotPostTranscriptions(w http.ResponseWriter, r *http.Requ
// Updating the file to point to the existing call post solves this problem
// without requiring us to expose a dedicated API nor attach the file which
// we don't want to show.
if err := p.updateFileInfoPostID(info.Transcriptions[0].FileIDs[0], info.PostID); err != nil {
if err := p.updateFileInfoPostID(info.Transcriptions[0].FileIDs[0], callID, info.PostID); err != nil {
Copy link
Member

Choose a reason for hiding this comment

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

arg, this callID == channelID is going to confuse me forever. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@streamer45 streamer45 added 3: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels Feb 29, 2024
@streamer45 streamer45 merged commit 437639c into main Feb 29, 2024
5 of 6 checks passed
@streamer45 streamer45 deleted the fix-fetch-captions branch February 29, 2024 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants