From 194e208e3184eb6adecf4a6d549751697c86b2d2 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Wed, 29 Apr 2020 12:42:52 +0200 Subject: [PATCH] Backend: Update client info after changing private flag Signed-off-by: Michael Mayer --- internal/api/batch.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/api/batch.go b/internal/api/batch.go index 1afe7510a..a033a9a5b 100644 --- a/internal/api/batch.go +++ b/internal/api/batch.go @@ -171,6 +171,8 @@ func BatchPhotosPrivate(router *gin.RouterGroup, conf *config.Config) { event.EntitiesUpdated("photos", entities) } + event.Publish("config.updated", event.Data(conf.ClientConfig())) + elapsed := time.Since(start) c.JSON(http.StatusOK, gin.H{"message": fmt.Sprintf("photos marked as private in %s", elapsed)})