Merge pull request #4917 from hpetru/4806-new-status_messages-page
Redirect to stream_path if is destkop
This commit is contained in:
commit
66c511197c
3 changed files with 10 additions and 2 deletions
|
|
@ -33,6 +33,7 @@
|
|||
* Don't cut off long tags in stream posts [#4864](https://github.com/diaspora/diaspora/issues/4864)
|
||||
* Do not replace earlier appearances of the name while mentioning somebody [#4868](https://github.com/diaspora/diaspora/issues/4868)
|
||||
* Catch exceptions when trying to decode an invalid URI [#4874](https://github.com/diaspora/diaspora/issues/4874)
|
||||
* Redirect to the stream when switching the mobile publisher to desktop [#4806](https://github.com/diaspora/diaspora/issues/4806)
|
||||
|
||||
## Features
|
||||
* You can report a single post by clicking the correct icon in the controler section [#4517](https://github.com/diaspora/diaspora/pull/4517)
|
||||
|
|
|
|||
|
|
@ -29,11 +29,13 @@ class StatusMessagesController < ApplicationController
|
|||
@contacts_of_contact = @contact.contacts
|
||||
render :layout => nil
|
||||
end
|
||||
else
|
||||
elsif(request.format == :mobile)
|
||||
@aspect = :all
|
||||
@aspects = current_user.aspects
|
||||
@aspect_ids = @aspects.map{ |a| a.id }
|
||||
gon.aspect_ids = @aspect_ids
|
||||
else
|
||||
redirect_to stream_path
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -125,4 +127,4 @@ class StatusMessagesController < ApplicationController
|
|||
def remove_getting_started
|
||||
current_user.disable_getting_started
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -58,6 +58,11 @@ describe StatusMessagesController do
|
|||
response.should be_success
|
||||
end
|
||||
|
||||
it 'should redirect on desktop version' do
|
||||
get :new
|
||||
response.should redirect_to(stream_path)
|
||||
end
|
||||
|
||||
it 'generates a jasmine fixture', :fixture => true do
|
||||
contact = alice.contact_for(bob.person)
|
||||
aspect = alice.aspects.create(:name => 'people')
|
||||
|
|
|
|||
Loading…
Reference in a new issue