[MM-63436] Replace Exif parser dependency (#30479)
* Replace Exif parser dependency * Improve forward seeking logic * Fix linting * Stop decoding upon finding tag * Use latest version of imagemeta dependency * Don't skip TIFF reader tests * Log improvements --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
2454de5b4a
Коммит
f8e16780ef
@@ -948,7 +948,7 @@ func (api *PluginAPI) SetTeamIcon(teamID string, data []byte) *model.AppError {
|
||||
return err
|
||||
}
|
||||
|
||||
return api.app.SetTeamIconFromFile(team, bytes.NewReader(data))
|
||||
return api.app.SetTeamIconFromFile(api.ctx, team, bytes.NewReader(data))
|
||||
}
|
||||
|
||||
func (api *PluginAPI) OpenInteractiveDialog(dialog model.OpenDialogRequest) *model.AppError {
|
||||
@@ -1103,12 +1103,15 @@ func (api *PluginAPI) UpdateUserRoles(userID string, newRoles string) (*model.Us
|
||||
func (api *PluginAPI) LogDebug(msg string, keyValuePairs ...any) {
|
||||
api.logger.Debugw(msg, keyValuePairs...)
|
||||
}
|
||||
|
||||
func (api *PluginAPI) LogInfo(msg string, keyValuePairs ...any) {
|
||||
api.logger.Infow(msg, keyValuePairs...)
|
||||
}
|
||||
|
||||
func (api *PluginAPI) LogError(msg string, keyValuePairs ...any) {
|
||||
api.logger.Errorw(msg, keyValuePairs...)
|
||||
}
|
||||
|
||||
func (api *PluginAPI) LogWarn(msg string, keyValuePairs ...any) {
|
||||
api.logger.Warnw(msg, keyValuePairs...)
|
||||
}
|
||||
@@ -1320,7 +1323,8 @@ func (api *PluginAPI) DeleteOAuthApp(appID string) *model.AppError {
|
||||
// PublishPluginClusterEvent broadcasts a plugin event to all other running instances of
|
||||
// the calling plugin.
|
||||
func (api *PluginAPI) PublishPluginClusterEvent(ev model.PluginClusterEvent,
|
||||
opts model.PluginClusterEventSendOptions) error {
|
||||
opts model.PluginClusterEventSendOptions,
|
||||
) error {
|
||||
if api.app.Cluster() == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user