error 500 when visit probile mobile and logged out. Fix #4458

This commit is contained in:
movilla 2013-08-29 12:18:53 +02:00
parent da23efa433
commit 2b97f74015
3 changed files with 17 additions and 1 deletions

View file

@ -7,6 +7,7 @@
* Highlight down arrow at the user menu on hover [#4441](https://github.com/diaspora/diaspora/pull/4441)
* Make invite code input width consistent across borwsers [#4448](https://github.com/diaspora/diaspora/pull/4448)
* Fix style of contacts in profile sidebar [#4451](https://github.com/diaspora/pull/4451)
* Fix profile mobile when logged out [#4464](https://github.com/diaspora/pull/4464)
## Features
* Add oEmbed content to the mobile view [#4343](https://github.com/diaspora/diaspora/pull/4353)

View file

@ -7,7 +7,7 @@
= person_link(post.author)
.remove_post
- if post.author == current_user.person
- if user_signed_in? && post.author == current_user.person
= link_to(image_tag('deletelabel.png'), post_path(post), :method => :delete, :data => { :confirm => "#{t('are_you_sure')}" }, :class => "remove")
.info

View file

@ -0,0 +1,15 @@
@javascript
Feature: Browsing Diaspora as a logged out user mobile
In order to view public diaspora content
as a random internet user
I want to view public pages
Background:
Given a user named "Bob Jones" with email "bob@bob.bob"
And "bob@bob.bob" has a public post with text "public stuff"
And I log out
Scenario: Visiting a profile page
When I toggle the mobile view
And I am on "bob@bob.bob"'s page
Then I should see "public stuff"