Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
mastodon
Commits
4e41cd9a
Commit
4e41cd9a
authored
8 years ago
by
Eugen
Committed by
GitHub
8 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1146 from tootsuite/fix-object-type-nil-exception
Fix nil#object_type error
parents
10459241
c9b23a93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/lib/atom_serializer.rb
+1
-1
app/lib/atom_serializer.rb
with
1 addition
and
1 deletion
+1
-1
app/lib/atom_serializer.rb
+
1
-
1
View file @
4e41cd9a
...
...
@@ -101,7 +101,7 @@ class AtomSerializer
serialize_status_attributes
(
object
,
status
)
append_element
(
object
,
'link'
,
nil
,
rel: :alternate
,
type:
'text/html'
,
href:
TagManager
.
instance
.
url_for
(
status
))
append_element
(
object
,
'thr:in-reply-to'
,
nil
,
ref:
TagManager
.
instance
.
uri_for
(
status
.
thread
),
href:
TagManager
.
instance
.
url_for
(
status
.
thread
))
if
status
.
reply?
append_element
(
object
,
'thr:in-reply-to'
,
nil
,
ref:
TagManager
.
instance
.
uri_for
(
status
.
thread
),
href:
TagManager
.
instance
.
url_for
(
status
.
thread
))
if
status
.
reply?
&&
!
status
.
thread
.
nil?
object
end
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets