Skip to content

Commit

Permalink
Update plugin.go
Browse files Browse the repository at this point in the history
Possible fix for issue mattermost-community#41.
Changing from markdown image to image-attatchment
  • Loading branch information
theme1256 authored Feb 22, 2023
1 parent a04c9c3 commit ca690f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ Available memes: ` + strings.Join(availableMemes, ", "),

resp := &model.CommandResponse{
ResponseType: model.COMMAND_RESPONSE_TYPE_IN_CHANNEL,
Text: "![" + template.Name + "](" + siteURL + "/plugins/memes/templates/" + template.Name + ".jpg" + queryString + ")",
//Text: "![" + template.Name + "](" + siteURL + "/plugins/memes/templates/" + template.Name + ".jpg" + queryString + ")",
Attachments: SlackAttachment{ ImageURL: siteURL + "/plugins/memes/templates/" + template.Name + ".jpg" + queryString },
}
return resp, nil
}
Expand Down

0 comments on commit ca690f9

Please sign in to comment.