Skip to content
Next
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Mobile
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
239
Merge Requests
11
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Minds
Minds Mobile
Compare Revisions
32389e01db34d3b233089198bafb75d7eea8f91d...bb7275ee1e814f2856bd04952b3cf9b8bfa460d7
Source
bb7275ee1e814f2856bd04952b3cf9b8bfa460d7
...
Target
32389e01db34d3b233089198bafb75d7eea8f91d
Compare
Commits (2)
(fix) comment vote counter is a string
· 067ece54
Martin Santangelo
authored
3 hours ago
067ece54
Merge branch 'fix/comments-vote-counter' into release/3.11.0
· bb7275ee
Martin Santangelo
authored
3 hours ago
bb7275ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/common/BaseModel.js
View file @
bb7275ee
...
...
@@ -206,7 +206,7 @@ export default class BaseModel {
this
[
'
thumbs:
'
+
direction
+
'
:user_guids
'
]
=
[
sessionService
.
guid
,
...
guids
];
}
this
[
'
thumbs:
'
+
direction
+
'
:count
'
]
+=
delta
;
this
[
'
thumbs:
'
+
direction
+
'
:count
'
]
=
parseInt
(
this
[
'
thumbs:
'
+
direction
+
'
:count
'
],
10
)
+
delta
;
const
params
=
this
.
getClientMetadata
();
...
...
@@ -220,7 +220,7 @@ export default class BaseModel {
}
else
{
this
[
'
thumbs:
'
+
direction
+
'
:user_guids
'
]
=
[
sessionService
.
guid
,
...
guids
];
}
this
[
'
thumbs:
'
+
direction
+
'
:count
'
]
-=
delta
;
this
[
'
thumbs:
'
+
direction
+
'
:count
'
]
=
parseInt
(
this
[
'
thumbs:
'
+
direction
+
'
:count
'
],
10
)
-
delta
;
throw
err
;
}
}
...
...
This diff is collapsed.