gatsby-core-theme 44.4.57 → 44.4.58
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.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## [44.4.58](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.57...v44.4.58) (2025-09-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* fix the issue ([8a70580](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/8a70580120d69d82cdc8e023c0df5509849e3b21))
|
|
7
|
+
* fix toplist redirection on admin bar and comments form ([4c0f3b5](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/4c0f3b568d3a57d7f17e3a1c1908f0e91f70e108))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
* Merge branch 'comments-fix' into 'master' ([d12464e](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/d12464e81f04c0858f38a4876d9c5fd04afbc96a))
|
|
11
|
+
|
|
1
12
|
## [44.4.57](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.56...v44.4.57) (2025-09-11)
|
|
2
13
|
|
|
3
14
|
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@ const getDMSLink = (module) => {
|
|
|
11
11
|
|
|
12
12
|
switch (module.name) {
|
|
13
13
|
case "top_list":
|
|
14
|
-
hercLink += `toplists/${module.items ? module.items[0].id : ""}
|
|
14
|
+
hercLink += `toplists/operators/${module.items ? module.items[0].id : ""}`;
|
|
15
15
|
linkText = "Edit Toplist";
|
|
16
16
|
break;
|
|
17
17
|
case "bonus":
|
|
@@ -21,11 +21,11 @@ const LeaveCommentForm = ({
|
|
|
21
21
|
buttonIcon = <FaArrowRight fontSize={20} title="Right-pointing Arrow Icon" />,
|
|
22
22
|
}) => {
|
|
23
23
|
const activeMarket = page?.market;
|
|
24
|
+
const isDev = process.env.NODE_ENV === 'development';
|
|
24
25
|
|
|
25
26
|
const customSubmit = (form, resetForm) => {
|
|
26
27
|
const formData = new FormData(form);
|
|
27
|
-
const data = Object.fromEntries(formData.entries());
|
|
28
|
-
|
|
28
|
+
const data = Object.fromEntries(formData.entries());
|
|
29
29
|
const cleanedData = isReply
|
|
30
30
|
? Object.entries(data).reduce((acc, [key, value]) => {
|
|
31
31
|
if (key.startsWith('post_anonymously_')) acc.post_anonymously = value;
|
|
@@ -34,8 +34,10 @@ const LeaveCommentForm = ({
|
|
|
34
34
|
return acc;
|
|
35
35
|
}, {})
|
|
36
36
|
: data;
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
if((cleanedData?.["g-recaptcha-response"] === '' || !cleanedData?.tnc) && !isDev) return;
|
|
40
|
+
|
|
39
41
|
if(parentCommentID) cleanedData.parent_id = parentCommentID;
|
|
40
42
|
|
|
41
43
|
cleanedData.reference_id = page?.id;
|
|
@@ -7,12 +7,10 @@ import { VotesProvider } from '../../../context/VotesProvider';
|
|
|
7
7
|
const Comments = ({ pageContext }) => {
|
|
8
8
|
const { comments, authors } = pageContext;
|
|
9
9
|
|
|
10
|
-
if (!comments) return null;
|
|
11
|
-
|
|
12
10
|
return (
|
|
13
11
|
<div>
|
|
14
12
|
<LeaveCommentForm page={pageContext.page} />
|
|
15
|
-
<VotesProvider>
|
|
13
|
+
{comments && <VotesProvider>
|
|
16
14
|
{comments.map((comment) => (
|
|
17
15
|
<CommentTree
|
|
18
16
|
key={comment.comment_id}
|
|
@@ -23,6 +21,7 @@ const Comments = ({ pageContext }) => {
|
|
|
23
21
|
/>
|
|
24
22
|
))}
|
|
25
23
|
</VotesProvider>
|
|
24
|
+
}
|
|
26
25
|
</div>
|
|
27
26
|
);
|
|
28
27
|
};
|