Commit Graph

39 Commits

Author SHA1 Message Date
Ralf Haferkamp
76b16765d8 cleanup: Avoid fetching group membership when not needed
Use the new GetUserNoGroups helper to lookup users without resolving
groupmemberships where possible.

Closes: #1005
2025-06-12 09:47:53 +02:00
Christian Richter
17b1c71f78 remove workaround for translation formatting
Signed-off-by: Christian Richter <c.richter@opencloud.eu>
2025-03-26 18:13:10 +01:00
Ralf Haferkamp
c46e0c4b6b Fix build with go 1.24
Go 1.24 does some stricter checks now on arguments to functions
accepting format strings.
This commit fixes a couple of "non-constant format string in call
to ..." errors when running the unit tests.
2025-03-10 10:43:34 +01:00
André Duffeck
e8d35e1280 Use the opencloud reva from now on 2025-01-21 11:16:38 +01:00
Jörn Friedrich Dreyer
b07b5a1149 use plain pkg module
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2025-01-13 16:42:19 +01:00
Jörn Friedrich Dreyer
8e028f17e9 change module name
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2025-01-13 09:58:18 +01:00
Ralf Haferkamp
ff6674f97b Fix fallout of reva bump
reva tries to avoid copying proto messages now. This changed some calls
to take pointers now (mainly e.g. FormatResourceId())
2024-07-11 15:21:56 +02:00
Benedikt Kulmann
21a9992980 feat: add image and photo metadata to search (#8504)
* feat: add image and photo metadata to search
2024-05-21 10:21:15 +02:00
Jörn Friedrich Dreyer
d9c9650afd always select next before making calls
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-04-09 16:10:50 +02:00
jkoberg
979bcd7106 use l10n package in userlog also
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-03-25 13:17:49 +01:00
Roman Perekhod
04a5ee283e fix default language fallback (#7479)
* fix default language fallback

* Update services/userlog/pkg/config/config.go

Co-authored-by: Martin <github@diemattels.at>

* Update services/notifications/pkg/config/config.go

Co-authored-by: Martin <github@diemattels.at>

* readme updated. local env vars removed

* Update changelog/unreleased/fix-default-mail-language-fallback.md

Co-authored-by: Martin <github@diemattels.at>

* update readme's and envvar texts

* fix changelog text

---------

Co-authored-by: Roman Perekhod <rperekhod@owncloud.com>
Co-authored-by: Martin <github@diemattels.at>
2023-10-17 09:56:48 +02:00
jkoberg
74f4143f0b use new utils methods in userlog
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-09-07 10:56:58 +02:00
jkoberg
900afb9bee use service accounts for userlog
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-08-31 12:11:43 +02:00
jkoberg
a83492d7ab allow deleting global evs
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-07-07 11:06:53 +02:00
jkoberg
d8667bf736 use hard typed deprovision date
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-07-07 11:06:53 +02:00
jkoberg
bca4d4f9fd add post event handler
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-07-07 11:06:53 +02:00
jkoberg
d2b873acff add sses to userlog
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-06-29 14:03:22 +02:00
Florian Schade
4f26424db6 [full-ci] enhancement: use reva client pool selectors (#6452)
* enhancement: use reva client pool selectors

register mock service to registry and pass tests

* enhancement: bump reva

* Fix a couple of linter issues

---------

Co-authored-by: Ralf Haferkamp <rhaferkamp@owncloud.com>
2023-06-08 12:41:04 +02:00
Michael Barz
e543c8f60d fix typo which slipped through 2023-04-19 17:28:16 +02:00
Michael Barz
38f6f3da2e delete empty translations [skip ci] 2023-04-19 17:03:03 +02:00
Roman Perekhod
22f8076a4f README.md updated.
returned value swapped
2023-04-17 16:15:21 +02:00
Roman Perekhod
cd59424a16 Make Emails translatable via transifex #6025
The transifex translation add in to the email templates.
The optional environment variable NOTIFICATIONS_TRANSLATION_PATH added to config.
2023-04-16 14:02:40 +02:00
jkoberg
a2f162a6a6 add missing messageRichParameters
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-24 15:16:03 +01:00
kobergj
ce84163983 notify a user when a file was deleted because of policies (#5912)
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-24 11:14:02 +01:00
jkoberg
86980441fe move debughandlers to their own package
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-22 13:59:54 +01:00
jkoberg
642d8f0028 notification for virusscan
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-21 10:06:06 +01:00
kobergj
9750dfaff9 use master version of gotext package (#5868)
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-17 16:03:28 +01:00
jkoberg
3e090c557f make translationpath configurable
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-13 10:28:32 +01:00
jkoberg
1fc2bbcb08 embed translation on startup
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-09 15:16:59 +01:00
jkoberg
cfca9ec4b1 adjust makefile
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-09 12:11:25 +01:00
jkoberg
b3bd2dc7c4 reverse template parsing logic
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-09 12:11:25 +01:00
jkoberg
b5ac1cd941 minimize request while rendering events
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-09 12:11:25 +01:00
jkoberg
70b3db5ff4 translate templates
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-09 12:11:23 +01:00
jkoberg
9255fdd935 add shareid to message details
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-09 09:24:16 +01:00
jkoberg
8a02a568f1 adjust for new reva version
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-09 09:24:16 +01:00
jkoberg
6960da69fb notify about other events
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-09 09:24:16 +01:00
jkoberg
49914e1c6b notify about SpaceShared
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-09 09:24:16 +01:00
jkoberg
00c8d68700 read hardcoded templates
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-09 09:24:16 +01:00
jkoberg
d7b09a1256 get SpaceDisabled event working
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-09 09:24:16 +01:00