From e12cb2c965e29db365b70f843bd836e696a6b8f2 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Wed, 7 Dec 2022 10:48:12 -0800 Subject: [PATCH] Remove Directly Sharing a Profile Image, use general ReshareFiles instead --- utils/eventHandler.go | 1 - 1 file changed, 1 deletion(-) diff --git a/utils/eventHandler.go b/utils/eventHandler.go index e648d79..c1413d9 100644 --- a/utils/eventHandler.go +++ b/utils/eventHandler.go @@ -119,7 +119,6 @@ func (eh *EventHandler) handleAppBusEvent(e *event.Event) string { // reset the share timestamp, currently file shares are hardcoded to expire after 30 days... // we reset the profile image here so that it is always available. profile.SetScopedZonedAttribute(attr.LocalScope, attr.FilesharingZone, fmt.Sprintf("%s.ts", key), strconv.FormatInt(time.Now().Unix(), 10)) - profile.ShareFile(key, serializedManifest) log.Debugf("Custom Profile Image: %v %s", e.Data[constants2.Picture], key, serializedManifest) } // If file sharing is enabled then reshare all active files...