decidim-blogs 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/config/locales/eu.yml +1 -1
- data/config/locales/fr-CA.yml +10 -0
- data/config/locales/fr.yml +10 -0
- data/config/locales/sv.yml +2 -2
- data/db/data/20260208135001_change_users_in_action_logs_posts.rb +29 -0
- data/lib/decidim/blogs/version.rb +1 -1
- metadata +17 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2f8ac1e380bf75ee12ca3ca1edf8993528eafd18daba1909e024b50df7c0883b
|
|
4
|
+
data.tar.gz: cc135dad5c8af065822ba789000267ce635214737beca507a0384ae68cabd0c6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 02ee85ab35580c9d977c5b40f883e002f6f2d8a567526fb7515bfbd8a457ecd5d79105039fb3576aa485a23a129a139341971a423fa54fd0ae6d60a351f183df
|
|
7
|
+
data.tar.gz: 8c08cdb7355e35eac7489d3c382169849467d7c29623b6e03d14504dd099bc7c3df9ddde262ed6261d405184fad9aba06e04ad91da9f1bd20878f98af5fa1884
|
data/config/locales/eu.yml
CHANGED
|
@@ -129,7 +129,7 @@ eu:
|
|
|
129
129
|
blogs:
|
|
130
130
|
post_created:
|
|
131
131
|
email_intro: '"%{resource_title}" argitalpena jarraitzen ari zaren "%{participatory_space_title}" espazioan argitaratu da.'
|
|
132
|
-
email_outro:
|
|
132
|
+
email_outro: Jakinarazpen hau jaso duzu "%{participatory_space_title}" jarraitzen ari zarelako. Aurreko estekan sartu jarraitzeari uzteko.
|
|
133
133
|
email_subject: Argitalpen berria %{participatory_space_title} espazioan
|
|
134
134
|
notification_title: <a href="%{resource_path}">%{resource_title}</a> sarrera %{participatory_space_title} argitaratu da
|
|
135
135
|
open_data:
|
data/config/locales/fr-CA.yml
CHANGED
|
@@ -138,6 +138,16 @@ fr-CA:
|
|
|
138
138
|
commentable_id: L'identifiant unique du commentaire
|
|
139
139
|
created_at: La date de création de ce commentaire
|
|
140
140
|
id: L'id de ce commentaire
|
|
141
|
+
posts:
|
|
142
|
+
body: Le corps de l'article
|
|
143
|
+
comments_count: Le nombre de commentaires sur cet article
|
|
144
|
+
component: Le composant auquel appartient l'article
|
|
145
|
+
created_at: La date de création de cet article
|
|
146
|
+
id: L'identifiant unique de cet article
|
|
147
|
+
published_at: La date à laquelle cet article a été publié
|
|
148
|
+
title: Le titre de l'article
|
|
149
|
+
updated_at: La dernière date de mise à jour de cet article
|
|
150
|
+
url: L'URL de cet article
|
|
141
151
|
statistics:
|
|
142
152
|
posts_count: Publications
|
|
143
153
|
posts_count_tooltip: Le nombre de mises à jour ou d'articles de blog publiés.
|
data/config/locales/fr.yml
CHANGED
|
@@ -138,6 +138,16 @@ fr:
|
|
|
138
138
|
commentable_id: L'identifiant unique du commentaire
|
|
139
139
|
created_at: La date de création de ce commentaire
|
|
140
140
|
id: L'id de ce commentaire
|
|
141
|
+
posts:
|
|
142
|
+
body: Le corps de l'article
|
|
143
|
+
comments_count: Le nombre de commentaires sur cet article
|
|
144
|
+
component: Le composant auquel appartient l'article
|
|
145
|
+
created_at: La date de création de cet article
|
|
146
|
+
id: L'identifiant unique de cet article
|
|
147
|
+
published_at: La date à laquelle cet article a été publié
|
|
148
|
+
title: Le titre de l'article
|
|
149
|
+
updated_at: La dernière date de mise à jour de cet article
|
|
150
|
+
url: L'URL de cet article
|
|
141
151
|
statistics:
|
|
142
152
|
posts_count: Articles
|
|
143
153
|
posts_count_tooltip: Le nombre de mises à jour ou d'articles de blog publiés.
|
data/config/locales/sv.yml
CHANGED
|
@@ -20,7 +20,7 @@ sv:
|
|
|
20
20
|
changeset:
|
|
21
21
|
posts: Inlägg
|
|
22
22
|
tooltips:
|
|
23
|
-
deleted_posts_info:
|
|
23
|
+
deleted_posts_info: Det går inte att ta bort inlägget
|
|
24
24
|
blogs:
|
|
25
25
|
actions:
|
|
26
26
|
author_id: Skapa inlägg som
|
|
@@ -116,7 +116,7 @@ sv:
|
|
|
116
116
|
comments_enabled: Aktivera kommentarer
|
|
117
117
|
comments_max_length: Maximal kommentarslängd (ange 0 för att använda standardvärdet)
|
|
118
118
|
creation_enabled_for_participants: Deltagarna kan skapa inlägg
|
|
119
|
-
define_taxonomy_filters:
|
|
119
|
+
define_taxonomy_filters: Ställ in filter innan du använder den här inställningen.
|
|
120
120
|
no_taxonomy_filters_found: Inga filter för kategorier hittades.
|
|
121
121
|
taxonomy_filters: Välj filter för komponenten
|
|
122
122
|
taxonomy_filters_add: Lägg till filter
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
class ChangeUsersInActionLogsPosts < 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::Blogs::Post").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
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: decidim-blogs
|
|
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
|
- Isaac Massot Gil
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-02-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: decidim-admin
|
|
@@ -16,98 +16,98 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - '='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.31.
|
|
19
|
+
version: 0.31.2
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - '='
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0.31.
|
|
26
|
+
version: 0.31.2
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: decidim-comments
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - '='
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 0.31.
|
|
33
|
+
version: 0.31.2
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - '='
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 0.31.
|
|
40
|
+
version: 0.31.2
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: decidim-core
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
45
|
- - '='
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 0.31.
|
|
47
|
+
version: 0.31.2
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - '='
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: 0.31.
|
|
54
|
+
version: 0.31.2
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: decidim-admin
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
59
|
- - '='
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: 0.31.
|
|
61
|
+
version: 0.31.2
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
66
|
- - '='
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: 0.31.
|
|
68
|
+
version: 0.31.2
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: decidim-assemblies
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
73
|
- - '='
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: 0.31.
|
|
75
|
+
version: 0.31.2
|
|
76
76
|
type: :development
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
80
|
- - '='
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: 0.31.
|
|
82
|
+
version: 0.31.2
|
|
83
83
|
- !ruby/object:Gem::Dependency
|
|
84
84
|
name: decidim-dev
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
|
86
86
|
requirements:
|
|
87
87
|
- - '='
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: 0.31.
|
|
89
|
+
version: 0.31.2
|
|
90
90
|
type: :development
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
94
|
- - '='
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: 0.31.
|
|
96
|
+
version: 0.31.2
|
|
97
97
|
- !ruby/object:Gem::Dependency
|
|
98
98
|
name: decidim-participatory_processes
|
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
|
100
100
|
requirements:
|
|
101
101
|
- - '='
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
|
-
version: 0.31.
|
|
103
|
+
version: 0.31.2
|
|
104
104
|
type: :development
|
|
105
105
|
prerelease: false
|
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
107
|
requirements:
|
|
108
108
|
- - '='
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
|
-
version: 0.31.
|
|
110
|
+
version: 0.31.2
|
|
111
111
|
description: A Blog component for decidim's participatory spaces.
|
|
112
112
|
email:
|
|
113
113
|
- isaac.mg@coditramuntana.com
|
|
@@ -254,6 +254,7 @@ files:
|
|
|
254
254
|
- config/locales/vi.yml
|
|
255
255
|
- config/locales/zh-CN.yml
|
|
256
256
|
- config/locales/zh-TW.yml
|
|
257
|
+
- db/data/20260208135001_change_users_in_action_logs_posts.rb
|
|
257
258
|
- db/migrate/20171129131353_create_decidim_blogs_posts.rb
|
|
258
259
|
- db/migrate/20171211084630_add_author_to_decidim_blogs_posts.rb
|
|
259
260
|
- db/migrate/20181017084519_make_blogposts_authors_polymorphics.rb
|