Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mastofe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Pleroma
mastofe
Commits
6c05e306
Commit
6c05e306
authored
8 years ago
by
Eugen Rochko
Browse files
Options
Downloads
Patches
Plain Diff
Include <id> (identical value to <uri>) on person-type objects in Atom
This might help with GS compatibility
parent
a782e3b3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/helpers/atom_builder_helper.rb
+2
-1
2 additions, 1 deletion
app/helpers/atom_builder_helper.rb
with
2 additions
and
1 deletion
app/helpers/atom_builder_helper.rb
+
2
−
1
View file @
6c05e306
...
...
@@ -158,11 +158,12 @@ module AtomBuilderHelper
if
stream_entry
.
targeted?
target
(
xml
)
do
simple_id
xml
,
TagManager
.
instance
.
uri_for
(
stream_entry
.
target
)
if
stream_entry
.
target
.
object_type
==
:person
include_author
xml
,
stream_entry
.
target
else
object_type
xml
,
stream_entry
.
target
.
object_type
simple_id
xml
,
TagManager
.
instance
.
uri_for
(
stream_entry
.
target
)
title
xml
,
stream_entry
.
target
.
title
link_alternate
xml
,
TagManager
.
instance
.
url_for
(
stream_entry
.
target
)
end
...
...
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