Skip to content

Commit

Permalink
feat: Disable News Activity Notifications by plugin instead of props -
Browse files Browse the repository at this point in the history
…Meeds-io/MIPs#50 (#889)

Prior to this change, the 'news' generated activity notification was disabled using properties embedded in Meeds Package. A new enhancement was made on Activity Stream APIto allow disable activity notifications by type. This change will configure the plugin to disable the Activity Notifications in favor of specific News notifications.

Co-authored-by: Boubaker Khanfir <[email protected]>
  • Loading branch information
rdenarie and boubaker authored Jul 20, 2023
1 parent c9f7a03 commit d3c2cda
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,4 +229,24 @@
</init-params>
</component-plugin>
</external-component-plugins>

<external-component-plugins>
<target-component>org.exoplatform.social.core.manager.ActivityManager</target-component>
<component-plugin>
<name>NewsActivityTypePlugin</name>
<set-method>addActivityTypePlugin</set-method>
<type>org.exoplatform.social.core.ActivityTypePlugin</type>
<init-params>
<value-param>
<name>type</name>
<value>news</value>
</value-param>
<value-param>
<name>enableNotification</name>
<value>false</value>
</value-param>
</init-params>
</component-plugin>
</external-component-plugins>

</configuration>

0 comments on commit d3c2cda

Please sign in to comment.