Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Milan
diaspora
Commits
3fae9669
Commit
3fae9669
authored
Mar 11, 2014
by
Jonne Haß
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'MatrixCrawler-4638-Atom-Feed-Error' into develop
parents
65d79614
3273028e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
Changelog.md
Changelog.md
+1
-0
app/views/users/public.atom.builder
app/views/users/public.atom.builder
+1
-2
spec/controllers/users_controller_spec.rb
spec/controllers/users_controller_spec.rb
+9
-1
No files found.
Changelog.md
View file @
3fae9669
...
...
@@ -20,6 +20,7 @@
*
Fix active user statistics by saving a last seen timestamp for users
[
#4734
](
https://github.com/diaspora/diaspora/issues/4734
)
*
Render HTML in atom user feed
[
#4835
](
https://github.com/diaspora/diaspora/pull/4835
)
*
Fix plaintext mode of Mentionable
[
#4294
](
https://github.com/diaspora/diaspora/issues/4294
)
*
Fixed Atom Feed Error if reshared Post is deleted [#4638] (https://github.com/diaspora/diaspora/issues/4638)
## Features
*
You can report a single post by clicking the correct icon in the controler section
[
#4517
](
https://github.com/diaspora/diaspora/pull/4517
)
...
...
app/views/users/public.atom.builder
View file @
3fae9669
...
...
@@ -26,9 +26,8 @@ atom_feed({'xmlns:thr' => 'http://purl.org/syndication/thread/1.0',
author.tag! 'poco:displayName', @user.name
end
@posts.each do |post|
post = post.absolute_root if post.is_a? Reshare
post = post.absolute_root
unless post.absolute_root.nil?
if post.is_a? Reshare
feed.entry post, :url => "#{@user.url}p/#{post.id}",
:id => "#{@user.url}p/#{post.id}" do |entry|
...
...
spec/controllers/users_controller_spec.rb
View file @
3fae9669
...
...
@@ -53,13 +53,21 @@ describe UsersController do
get
:public
,
:username
=>
@user
.
username
,
:format
=>
:atom
response
.
body
.
should
include
(
'a href'
)
end
it
'includes reshares in the atom feed'
do
reshare
=
FactoryGirl
.
create
(
:reshare
,
:author
=>
@user
.
person
)
get
:public
,
:username
=>
@user
.
username
,
:format
=>
:atom
response
.
body
.
should
include
reshare
.
root
.
raw_message
end
it
'do not show reshares in atom feed if origin post is deleted'
do
post
=
FactoryGirl
.
create
(
:status_message
,
:public
=>
true
);
reshare
=
FactoryGirl
.
create
(
:reshare
,
:root
=>
post
,
:author
=>
@user
.
person
)
post
.
delete
get
:public
,
:username
=>
@user
.
username
,
:format
=>
:atom
response
.
code
.
should
==
'200'
end
it
'redirects to a profile page if html is requested'
do
get
:public
,
:username
=>
@user
.
username
response
.
should
be_redirect
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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