From 2b40a0bdaeb80e022dab022c3ef352ec170881a2 Mon Sep 17 00:00:00 2001 From: Ben Schumacher Date: Mon, 17 Aug 2026 12:11:17 +0200 Subject: [PATCH] MM-67868: Remove deprecated Slack compatibility type aliases (#37163) Remove the deprecated backward-compatibility aliases introduced in #35445: SlackAttachment, SlackAttachmentField, ParseSlackAttachment, and StringifySlackFieldValue. Plugins should now use the MessageAttachment equivalents directly. SlackCompatibleBool is retained as it is still actively used. Claude-Session: https://claude.ai/code/session_01KnMUsaSbm4HQsNEEtH5zp8 Co-authored-by: Claude Co-authored-by: Mattermost Build --- server/public/model/slack_compatibility.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/server/public/model/slack_compatibility.go b/server/public/model/slack_compatibility.go index 020dc5fc0e2..e5a464d2cfe 100644 --- a/server/public/model/slack_compatibility.go +++ b/server/public/model/slack_compatibility.go @@ -8,22 +8,6 @@ import ( "strings" ) -// Deprecated: Use MessageAttachment instead. -type SlackAttachment = MessageAttachment - -// Deprecated: Use MessageAttachmentField instead. -type SlackAttachmentField = MessageAttachmentField - -// Deprecated: Use ParseMessageAttachment instead. -func ParseSlackAttachment(post *Post, attachments []*MessageAttachment) { - ParseMessageAttachment(post, attachments) -} - -// Deprecated: Use StringifyMessageAttachmentFieldValue instead. -func StringifySlackFieldValue(a []*MessageAttachment) []*MessageAttachment { - return StringifyMessageAttachmentFieldValue(a) -} - // SlackCompatibleBool is an alias for bool that implements json.Unmarshaler type SlackCompatibleBool bool