Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

✨ #28 - Create notification for new comments. #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"composer/installers": "^1.2",
"cweagans/composer-patches": "^1.6.5",
"drupal/admin_toolbar": "^3",
"drupal/comment_notify": "^1.2",
"drupal/console": "^1.0.2",
"drupal/core": "8.9.13",
"drupal/core-composer-scaffold": "8.9.13",
Expand Down
124 changes: 123 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions config/sync/comment_notify.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
bundle_types:
- user--user--field_user_comment
available_alerts:
1: true
2: true
enable_default:
watcher: '1'
entity_author: true
mail_templates:
watcher:
node:
subject: '[site:name] :: new comment on [node:title]'
body: "Hi [comment-subscribed:author],\r\n\r\n[comment:author] has commented on: \"[node:title]\"\r\n\r\n----\r\n[comment:title]\r\n[comment:body]\r\n----\r\n\r\nYou can view the comment at the following url\r\n[comment:url]\r\n\r\nYou can stop receiving emails when someone replies to this post,\r\nby going to [comment-subscribed:unsubscribe-url]\r\n\r\nYou can set up auto-following feature for all future posts\r\nby creating your own user with a few clicks here [site:login-url]\r\n\r\n-- [site:name] team\r\n[site:url]\r\n"
user:
subject: '[comment:author]-მ(ა) ასევე დატოვა კომენტარი'
body: "[comment:author]: \r\n\r\n[comment:body]\r\n\r\nვრცლად: \r\n[comment:url]"
entity_author:
node:
subject: '[site:name] :: new comment for your post'
body: "Hi [node:author],\r\n\r\nYou have received a comment on: \"[node:title]\"\r\n\r\n----\r\n[comment:title]\r\n[comment:body]\r\n----\r\n\r\nYou can view the comment at the following url\r\n[comment:url]\r\n\r\nYou will receive emails like this for all replies to your posts. You can\r\ndisable this by logging in and changing the settings on your user account at\r\n[node:author:edit-url].\r\n\r\n-- [site:name] team\r\n[site:url]\r\n"
user:
subject: '[comment:author]-მ(ა) დატოვა კომენტარი შენს პროფილზე'
body: "[comment:author]:\r\n\r\n[comment:body]\r\n\r\nვრცლად:\r\n[comment:url]"
_core:
default_config_hash: y7oCzsZ-B0R-nyeSFO1f2h9BEChUQGSZT-3cqXd-sLE
10 changes: 10 additions & 0 deletions config/sync/core.entity_view_mode.block.token.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
uuid: 0b5b7943-74da-498e-92ee-d751c3932c5d
langcode: en
status: true
dependencies:
module:
- block
id: block.token
label: Token
targetEntityType: block
cache: true
10 changes: 10 additions & 0 deletions config/sync/core.entity_view_mode.comment.token.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
uuid: 9ede68af-8fc5-4279-92a4-70bd266bf7ed
langcode: en
status: true
dependencies:
module:
- comment
id: comment.token
label: Token
targetEntityType: comment
cache: true
10 changes: 10 additions & 0 deletions config/sync/core.entity_view_mode.contact_message.token.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
uuid: d7fe5260-d97d-42d7-b452-e0436d2e1b65
langcode: en
status: true
dependencies:
module:
- contact
id: contact_message.token
label: Token
targetEntityType: contact_message
cache: true
10 changes: 10 additions & 0 deletions config/sync/core.entity_view_mode.file.token.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
uuid: 138723e2-b1eb-4a89-b0a9-fbbfec336c63
langcode: en
status: true
dependencies:
module:
- file
id: file.token
label: Token
targetEntityType: file
cache: true
10 changes: 10 additions & 0 deletions config/sync/core.entity_view_mode.media.token.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
uuid: 526b9473-2b9d-4836-82fa-917a5e8a0841
langcode: en
status: true
dependencies:
module:
- media
id: media.token
label: Token
targetEntityType: media
cache: true
10 changes: 10 additions & 0 deletions config/sync/core.entity_view_mode.menu_link_content.token.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
uuid: ef7d56be-ad0f-4c88-a181-d114a923680a
langcode: en
status: true
dependencies:
module:
- menu_link_content
id: menu_link_content.token
label: Token
targetEntityType: menu_link_content
cache: true
10 changes: 10 additions & 0 deletions config/sync/core.entity_view_mode.node.token.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
uuid: c23d7da5-b3fa-4e57-83b4-cce2da41183c
langcode: en
status: true
dependencies:
module:
- node
id: node.token
label: Token
targetEntityType: node
cache: true
10 changes: 10 additions & 0 deletions config/sync/core.entity_view_mode.page_variant.token.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
uuid: 1a54917d-9bc7-4b18-bd76-eefa939e7a6d
langcode: en
status: true
dependencies:
module:
- page_manager
id: page_variant.token
label: Token
targetEntityType: page_variant
cache: true
10 changes: 10 additions & 0 deletions config/sync/core.entity_view_mode.path_alias.token.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
uuid: c7a850b6-67f9-4187-9240-54fb4f01c055
langcode: en
status: true
dependencies:
module:
- path_alias
id: path_alias.token
label: Token
targetEntityType: path_alias
cache: true
10 changes: 10 additions & 0 deletions config/sync/core.entity_view_mode.profile.token.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
uuid: b289f631-ed91-44db-8d05-c3a693c7802b
langcode: en
status: true
dependencies:
module:
- profile
id: profile.token
label: Token
targetEntityType: profile
cache: true
10 changes: 10 additions & 0 deletions config/sync/core.entity_view_mode.shortcut.token.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
uuid: 49f2d1c9-3197-442f-bcba-9a82eaa27b9f
langcode: en
status: true
dependencies:
module:
- shortcut
id: shortcut.token
label: Token
targetEntityType: shortcut
cache: true
10 changes: 10 additions & 0 deletions config/sync/core.entity_view_mode.taxonomy_term.token.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
uuid: 487c8bae-4aa3-4203-b6a9-9fc12ce33a29
langcode: en
status: true
dependencies:
module:
- taxonomy
id: taxonomy_term.token
label: Token
targetEntityType: taxonomy_term
cache: true
10 changes: 10 additions & 0 deletions config/sync/core.entity_view_mode.user.token.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
uuid: c7c602e4-7c7c-497d-9035-dfe283013c17
langcode: en
status: true
dependencies:
module:
- user
id: user.token
label: Token
targetEntityType: user
cache: true
10 changes: 10 additions & 0 deletions config/sync/core.entity_view_mode.webform.token.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
uuid: c586547e-66be-4011-b993-d3ebae782946
langcode: en
status: true
dependencies:
module:
- webform
id: webform.token
label: Token
targetEntityType: webform
cache: true
10 changes: 10 additions & 0 deletions config/sync/core.entity_view_mode.webform_submission.token.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
uuid: 4d5cc040-cf79-4d59-9280-24433689c7da
langcode: en
status: true
dependencies:
module:
- webform
id: webform_submission.token
label: Token
targetEntityType: webform_submission
cache: true
2 changes: 2 additions & 0 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ module:
taxonomy: 0
telephone: 0
text: 0
token: 0
toolbar: 0
typed_data: 0
update: 0
Expand All @@ -64,6 +65,7 @@ module:
webform_templates: 0
webform_ui: 0
webform_bootstrap: 1
comment_notify: 10
views: 10
minimal: 1000
theme:
Expand Down
1 change: 1 addition & 0 deletions config/sync/user.role.authenticated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ permissions:
- 'opt-in or out of google analytics tracking'
- 'post comments'
- 'skip comment approval'
- 'subscribe to comments'
- 'update own phase_1 profile'
- 'view media'
- 'view own phase_1 profile'
Expand Down