parent
4c750c8784
commit
a14c61300e
4 changed files with 13 additions and 2 deletions
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
## Refactor
|
## Refactor
|
||||||
|
|
||||||
|
* Removed the publisher from a user's photo stream due to various issues [#6851](https://github.com/diaspora/diaspora/pull/6851)
|
||||||
|
|
||||||
## Bug fixes
|
## Bug fixes
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ app.pages.Profile = app.views.Base.extend({
|
||||||
});
|
});
|
||||||
app.stream.fetch();
|
app.stream.fetch();
|
||||||
|
|
||||||
if( this.model.get('is_own_profile') ) {
|
if( this.model.get("is_own_profile") && route !== "personPhotos" ) {
|
||||||
app.publisher = new app.views.Publisher({collection : app.stream.items});
|
app.publisher = new app.views.Publisher({collection : app.stream.items});
|
||||||
}
|
}
|
||||||
app.shortcuts = app.shortcuts || new app.views.StreamShortcuts({el: $(document)});
|
app.shortcuts = app.shortcuts || new app.views.StreamShortcuts({el: $(document)});
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
.stream_container
|
.stream_container
|
||||||
|
|
||||||
- if user_signed_in? && current_user.person.id == @person.id
|
- if user_signed_in? && current_user.person.id == @person.id && !current_page?(person_photos_path(@person))
|
||||||
= render 'publisher/publisher', publisher_aspects_for(nil)
|
= render 'publisher/publisher', publisher_aspects_for(nil)
|
||||||
|
|
||||||
#main_stream.stream
|
#main_stream.stream
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,15 @@ describe PeopleController, type: :request do
|
||||||
expect(response.body).not_to match(/a class="login"/)
|
expect(response.body).not_to match(/a class="login"/)
|
||||||
expect(response.body).to match(/div id='publisher_textarea_wrapper'/)
|
expect(response.body).to match(/div id='publisher_textarea_wrapper'/)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it "doesn't display the publisher for people photos path" do
|
||||||
|
get "/people/#{alice.person.guid}/photos"
|
||||||
|
|
||||||
|
expect(response.status).to eq(200)
|
||||||
|
# make sure we are signed in
|
||||||
|
expect(response.body).not_to match(/a class="login"/)
|
||||||
|
expect(response.body).not_to match(/div class='publisher-textarea-wrapper' id='publisher_textarea_wrapper'/)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context "for another user" do
|
context "for another user" do
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue