Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
condenser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
condenser
Commits
e3fc2439
Commit
e3fc2439
authored
8 years ago
by
Tim
Committed by
Valentine Zavgorodnev
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix forward-compat for reblogged_by
parent
2df91da8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/components/cards/PostSummary.jsx
+8
-2
8 additions, 2 deletions
app/components/cards/PostSummary.jsx
with
8 additions
and
2 deletions
app/components/cards/PostSummary.jsx
+
8
−
2
View file @
e3fc2439
...
@@ -72,9 +72,15 @@ class PostSummary extends React.Component {
...
@@ -72,9 +72,15 @@ class PostSummary extends React.Component {
const
archived
=
content
.
get
(
'
mode
'
)
===
'
archived
'
const
archived
=
content
.
get
(
'
mode
'
)
===
'
archived
'
let
reblogged_by
=
content
.
get
(
'
first_reblogged_by
'
)
let
reblogged_by
;
if
(
content
.
get
(
'
reblogged_by
'
)
&&
content
.
get
(
'
reblogged_by
'
).
size
>
0
)
{
reblogged_by
=
content
.
get
(
'
reblogged_by
'
).
toJS
()
}
else
if
(
content
.
get
(
'
first_reblogged_by
'
))
{
// TODO: this case is backwards-compat for 0.16.1. remove after upgrading.
reblogged_by
=
[
content
.
get
(
'
first_reblogged_by
'
)]
}
if
(
reblogged_by
)
{
if
(
reblogged_by
)
{
if
(
typeof
reblogged_by
===
'
string
'
)
reblogged_by
=
[
reblogged_by
]
// TODO: this line is backwards-compat for 0.16.1. remove after upgrading.
reblogged_by
=
<
div
className
=
"PostSummary__reblogged_by"
>
reblogged_by
=
<
div
className
=
"PostSummary__reblogged_by"
>
<
Icon
name
=
"reblog"
/>
Resteemed by
<
UserNames
names
=
{
reblogged_by
}
/>
<
Icon
name
=
"reblog"
/>
Resteemed by
<
UserNames
names
=
{
reblogged_by
}
/>
</
div
>
</
div
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment