-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to Exclude Notifications only for Files and Images #5334
Comments
Unfortunately, this is not possible at the moment. |
Thanks for this prompt answer, |
You can try to add |
It works! thanks, |
I can't say when and if/how the feature will be available... |
@luke- I've tested this in 'container' => [
'definitions' => [
\humhub\modules\cfiles\models\File::class => [
'silentContentCreation' => true,
],
\humhub\modules\gallery\models\Media::class => [
'silentContentCreation' => true,
],
]
], But it doesn't work. Do you know why? |
Maybe it's like <?php
return [
// Other configurations...
'container' => [
'definitions' => [
'humhub\modules\cfiles\models\File' => [
'silentContentCreation' => true,
],
'humhub\modules\gallery\models\Media' => [
'silentContentCreation' => true,
],
],
],
// More configurations...
]; |
@ArchBlood Thanks. But it should work with |
Did you make sure that there was a |
Otherwise I'd see the following being possible if <?php
return [
// Other configurations...
'container' => [
'definitions' => [
'humhub\modules\cfiles\models\File' => 'humhub\modules\cfiles\models\CustomFile',
'humhub\modules\gallery\models\Media' => 'humhub\modules\gallery\models\CustomMedia',
],
],
// More configurations...
]; |
Yes because these classes extends the |
This just means that neither class inherited |
Thanks to
streamExcludes
incommon.php
new files and new images are excluded from the stream,So far so good...
... but notifications are still there.
Recently one of our member added 40 new images to an existing gallery.
The result was that each member of the space recieved 40 emails. Not good for the planet and very annoying.
Uploading several images in one set does not change anything.
Please, is there a way to avoid notification for Files and Images and to keep them for posts ??
As well as
streamExcludes
incommon.php
, something like this would be useful:May be possible, but I cannot find
The text was updated successfully, but these errors were encountered: