decidim-comments 0.31.1 → 0.31.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/cells/decidim/comments/comment/alignment_badge.erb +1 -1
- data/config/locales/eu.yml +1 -1
- data/config/locales/fr-CA.yml +16 -0
- data/config/locales/fr.yml +16 -0
- data/config/locales/sv.yml +7 -1
- data/db/data/20260208135000_change_users_in_action_logs_comments.rb +29 -0
- data/lib/decidim/comments/comment_serializer.rb +2 -2
- data/lib/decidim/comments/version.rb +1 -1
- metadata +9 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ed69ccfce24028b8a0ab5aef6d428449f4c9eada24c3a9d1e007454cce3fe9e9
|
|
4
|
+
data.tar.gz: aca46052376b13afd68a98a33acb219af8bd1c47241c13c72c0a433ad0395f6c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 41f4159c504ec772d7829e01b27af6071ca636788aba5684673954257a218f7ee8e288ebb40785460975bfa5f86f5647ba4213f96874658504dc9447dd76fd47
|
|
7
|
+
data.tar.gz: 48d2de98a4510eff7abebcee5c3ba945d5754e01ec440da4a21a7b358eae8c6e30ab254fd58613f12fc8ee1b78cd840dd9b0d762dc730dee964a2750e83f65c4
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<
|
|
1
|
+
<p class="<%= alignment_badge_classes %> comment__content--label"><%= alignment_badge_label %></p>
|
data/config/locales/eu.yml
CHANGED
|
@@ -189,7 +189,7 @@ eu:
|
|
|
189
189
|
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> -k zure iruzkinari erantzun dio hemen <a href="%{resource_path}">%{resource_title}</a>
|
|
190
190
|
user_mentioned:
|
|
191
191
|
email_intro: Aipatu zaituzte
|
|
192
|
-
email_outro: 'Jakinarazpen hau jaso duzu hemen: %{resource_title}
|
|
192
|
+
email_outro: 'Jakinarazpen hau jaso duzu hemen aipatu zaituztelako: %{resource_title}.'
|
|
193
193
|
email_subject: 'Hemen: %{resource_title} aipatu zaituzte'
|
|
194
194
|
notification_title: 'Hemen: <a href="%{group_path}">%{group_name} %{group_nickname}</a> egile honek: <a href="%{author_path}">%{author_name} %{author_nickname}</a> aipatu zaitu'
|
|
195
195
|
errors:
|
data/config/locales/fr-CA.yml
CHANGED
|
@@ -110,16 +110,19 @@ fr-CA:
|
|
|
110
110
|
recent: Les plus récents
|
|
111
111
|
title: 'Classement par :'
|
|
112
112
|
comments:
|
|
113
|
+
against: Contre
|
|
113
114
|
blocked_comments_for_unauthorized_user_warning: Vous devez valider votre inscription pour commenter maintenant, mais vous pouvez lire les commentaires précédents.
|
|
114
115
|
blocked_comments_for_user_warning: Vous n'êtes pas en mesure de commenter pour le moment, mais vous pouvez lire les précédents.
|
|
115
116
|
blocked_comments_warning: Les commentaires sont actuellement désactivés, seuls les administrateurs peuvent répondre ou en poster de nouveaux.
|
|
116
117
|
comment_details_title: Détails du commentaire
|
|
118
|
+
in_favor: Pour
|
|
117
119
|
loading: Chargement des commentaires ...
|
|
118
120
|
single_comment_warning: <a href="%{url}">Voir tous les commentaires</a>
|
|
119
121
|
single_comment_warning_title: Vous ne voyez qu'un seul commentaire
|
|
120
122
|
title:
|
|
121
123
|
one: "%{count} commentaire"
|
|
122
124
|
other: "%{count} commentaires"
|
|
125
|
+
top_comment_label: Ayant le plus de votes positifs
|
|
123
126
|
down_vote_button:
|
|
124
127
|
label:
|
|
125
128
|
one: Bouton "Je n'aime pas". %{count} "je n'aime pas"
|
|
@@ -138,6 +141,19 @@ fr-CA:
|
|
|
138
141
|
one: Bouton "J'aime". %{count} "J'aime"
|
|
139
142
|
other: Bouton "J'aime". %{count} "J'aime"
|
|
140
143
|
text: Je suis d'accord avec ce commentaire
|
|
144
|
+
download_your_data:
|
|
145
|
+
help:
|
|
146
|
+
comment_votes:
|
|
147
|
+
id: L'id du vote
|
|
148
|
+
comments:
|
|
149
|
+
body: Le commentaire lui-même
|
|
150
|
+
commentable_id: L'identifiant unique de l"élément commenté
|
|
151
|
+
commentable_type: Le type de l'élément commenté (si c'était un résultat, une proposition, etc.)
|
|
152
|
+
created_at: La date de création de ce commentaire
|
|
153
|
+
depth: L'endroit où ce commentaire se trouve dans l'arborescence des commentaires (si c'est une réponse ou une réponse d'une réponse)
|
|
154
|
+
id: L'identifiant de ce commentaire
|
|
155
|
+
locale: La langue que le participant a utilisé en créant ce commentaire
|
|
156
|
+
root_commentable_url: L'URL de la ressource liée à ce commentaire
|
|
141
157
|
events:
|
|
142
158
|
comments:
|
|
143
159
|
comment_by_followed_user:
|
data/config/locales/fr.yml
CHANGED
|
@@ -110,16 +110,19 @@ fr:
|
|
|
110
110
|
recent: Les plus récents
|
|
111
111
|
title: 'Classement par :'
|
|
112
112
|
comments:
|
|
113
|
+
against: Contre
|
|
113
114
|
blocked_comments_for_unauthorized_user_warning: Vous devez faire vérifier votre compte pour commenter, mais vous pouvez lire les commentaires précédents.
|
|
114
115
|
blocked_comments_for_user_warning: Vous n'êtes pas en mesure de commenter pour le moment, mais vous pouvez lire les précédents.
|
|
115
116
|
blocked_comments_warning: Les commentaires sont actuellement désactivés, seuls les administrateurs peuvent répondre ou en poster de nouveaux.
|
|
116
117
|
comment_details_title: Détails du commentaire
|
|
118
|
+
in_favor: Pour
|
|
117
119
|
loading: Chargement des commentaires ...
|
|
118
120
|
single_comment_warning: <a href="%{url}">Voir tous les commentaires</a>
|
|
119
121
|
single_comment_warning_title: Vous ne voyez qu'un seul commentaire
|
|
120
122
|
title:
|
|
121
123
|
one: "%{count} commentaire"
|
|
122
124
|
other: "%{count} commentaires"
|
|
125
|
+
top_comment_label: Ayant le plus de votes positifs
|
|
123
126
|
down_vote_button:
|
|
124
127
|
label:
|
|
125
128
|
one: Bouton "Je n'aime pas". %{count} "je n'aime pas"
|
|
@@ -138,6 +141,19 @@ fr:
|
|
|
138
141
|
one: Bouton "J'aime". %{count} "J'aime"
|
|
139
142
|
other: Bouton "J'aime". %{count} "J'aime"
|
|
140
143
|
text: Je suis d'accord avec ce commentaire
|
|
144
|
+
download_your_data:
|
|
145
|
+
help:
|
|
146
|
+
comment_votes:
|
|
147
|
+
id: L'id du vote
|
|
148
|
+
comments:
|
|
149
|
+
body: Le commentaire lui-même
|
|
150
|
+
commentable_id: L'identifiant unique de l"élément commenté
|
|
151
|
+
commentable_type: Le type de l'élément commenté (si c'était un résultat, une proposition, etc.)
|
|
152
|
+
created_at: La date de création de ce commentaire
|
|
153
|
+
depth: L'endroit où ce commentaire se trouve dans l'arborescence des commentaires (si c'est une réponse ou une réponse d'une réponse)
|
|
154
|
+
id: L'identifiant de ce commentaire
|
|
155
|
+
locale: La langue que le participant a utilisé en créant ce commentaire
|
|
156
|
+
root_commentable_url: L'URL de la ressource liée à ce commentaire
|
|
141
157
|
events:
|
|
142
158
|
comments:
|
|
143
159
|
comment_by_followed_user:
|
data/config/locales/sv.yml
CHANGED
|
@@ -28,7 +28,7 @@ sv:
|
|
|
28
28
|
end_time: Kommentarer aktiverade till och med
|
|
29
29
|
start_time: Kommentarer aktiverade från och med
|
|
30
30
|
comment_thread:
|
|
31
|
-
accessibility_label:
|
|
31
|
+
accessibility_label: Kommentartråd startad av %{full_name}, %{date}
|
|
32
32
|
comments:
|
|
33
33
|
create:
|
|
34
34
|
error: Det gick inte att skapa kommentaren.
|
|
@@ -124,6 +124,9 @@ sv:
|
|
|
124
124
|
other: "%{count} kommentarer"
|
|
125
125
|
top_comment_label: Mest stöd
|
|
126
126
|
down_vote_button:
|
|
127
|
+
label:
|
|
128
|
+
one: Ogilla-knapp. %{count} ogillar
|
|
129
|
+
other: Ogilla-knapp. %{count} ogillar
|
|
127
130
|
text: Jag instämmer inte i denna kommentar
|
|
128
131
|
edit_comment_modal_form:
|
|
129
132
|
close: Stäng
|
|
@@ -134,6 +137,9 @@ sv:
|
|
|
134
137
|
submit: Skicka
|
|
135
138
|
title: Redigera din kommentar
|
|
136
139
|
up_vote_button:
|
|
140
|
+
label:
|
|
141
|
+
one: Gilla-knapp. %{count} gillar
|
|
142
|
+
other: Gilla-knapp. %{count} gillar
|
|
137
143
|
text: Jag instämmer i denna kommentar
|
|
138
144
|
download_your_data:
|
|
139
145
|
help:
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
class ChangeUsersInActionLogsComments < ActiveRecord::Migration[7.2]
|
|
4
|
+
class ActionLog < ApplicationRecord
|
|
5
|
+
self.table_name = :decidim_action_logs
|
|
6
|
+
|
|
7
|
+
belongs_to :user, class_name: "Decidim::UserBaseEntity"
|
|
8
|
+
|
|
9
|
+
belongs_to :resource,
|
|
10
|
+
polymorphic: true,
|
|
11
|
+
optional: true
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def up
|
|
15
|
+
ActionLog.where(resource_type: "Decidim::Comments::Comment").find_each do |action_log|
|
|
16
|
+
next unless action_log.resource
|
|
17
|
+
|
|
18
|
+
author = action_log.resource.author
|
|
19
|
+
|
|
20
|
+
next unless author.is_a?(Decidim::User)
|
|
21
|
+
next unless author.group?
|
|
22
|
+
|
|
23
|
+
action_log.user_id = author.id
|
|
24
|
+
action_log.extra["user"] ||= {}
|
|
25
|
+
action_log.extra["user"].merge!("name" => author.name, "nickname" => author.nickname)
|
|
26
|
+
action_log.save!
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -14,8 +14,8 @@ module Decidim
|
|
|
14
14
|
body: resource.body.values.first,
|
|
15
15
|
locale: resource.body.keys.first,
|
|
16
16
|
author: {
|
|
17
|
-
id: resource.author.id,
|
|
18
|
-
name: resource.author.name
|
|
17
|
+
id: resource.author.try(:id),
|
|
18
|
+
name: resource.author.try(:name)
|
|
19
19
|
},
|
|
20
20
|
alignment: resource.alignment,
|
|
21
21
|
depth: resource.depth,
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: decidim-comments
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.31.
|
|
4
|
+
version: 0.31.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Josep Jaume Rey Peroy
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2026-
|
|
13
|
+
date: 2026-02-26 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: decidim-core
|
|
@@ -18,14 +18,14 @@ dependencies:
|
|
|
18
18
|
requirements:
|
|
19
19
|
- - '='
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 0.31.
|
|
21
|
+
version: 0.31.2
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
25
|
requirements:
|
|
26
26
|
- - '='
|
|
27
27
|
- !ruby/object:Gem::Version
|
|
28
|
-
version: 0.31.
|
|
28
|
+
version: 0.31.2
|
|
29
29
|
- !ruby/object:Gem::Dependency
|
|
30
30
|
name: redcarpet
|
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -52,28 +52,28 @@ dependencies:
|
|
|
52
52
|
requirements:
|
|
53
53
|
- - '='
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
|
-
version: 0.31.
|
|
55
|
+
version: 0.31.2
|
|
56
56
|
type: :development
|
|
57
57
|
prerelease: false
|
|
58
58
|
version_requirements: !ruby/object:Gem::Requirement
|
|
59
59
|
requirements:
|
|
60
60
|
- - '='
|
|
61
61
|
- !ruby/object:Gem::Version
|
|
62
|
-
version: 0.31.
|
|
62
|
+
version: 0.31.2
|
|
63
63
|
- !ruby/object:Gem::Dependency
|
|
64
64
|
name: decidim-dev
|
|
65
65
|
requirement: !ruby/object:Gem::Requirement
|
|
66
66
|
requirements:
|
|
67
67
|
- - '='
|
|
68
68
|
- !ruby/object:Gem::Version
|
|
69
|
-
version: 0.31.
|
|
69
|
+
version: 0.31.2
|
|
70
70
|
type: :development
|
|
71
71
|
prerelease: false
|
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
|
73
73
|
requirements:
|
|
74
74
|
- - '='
|
|
75
75
|
- !ruby/object:Gem::Version
|
|
76
|
-
version: 0.31.
|
|
76
|
+
version: 0.31.2
|
|
77
77
|
description: Pluggable comments system for some components.
|
|
78
78
|
email:
|
|
79
79
|
- josepjaume@gmail.com
|
|
@@ -254,6 +254,7 @@ files:
|
|
|
254
254
|
- config/locales/zh-CN.yml
|
|
255
255
|
- config/locales/zh-TW.yml
|
|
256
256
|
- db/data/20251117070404_update_user_groups_references.rb
|
|
257
|
+
- db/data/20260208135000_change_users_in_action_logs_comments.rb
|
|
257
258
|
- db/migrate/20161130143508_create_comments.rb
|
|
258
259
|
- db/migrate/20161214082645_add_depth_to_comments.rb
|
|
259
260
|
- db/migrate/20161216102820_add_alignment_to_comments.rb
|