Merge pull request #4464 from movilla/profile_mobile_500
Error 500 when visit probile mobile and logged out. Fix #4458
This commit is contained in:
commit
eda65f3258
3 changed files with 17 additions and 1 deletions
|
|
@ -7,6 +7,7 @@
|
||||||
* Highlight down arrow at the user menu on hover [#4441](https://github.com/diaspora/diaspora/pull/4441)
|
* 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)
|
* 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 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
|
## Features
|
||||||
* Add oEmbed content to the mobile view [#4343](https://github.com/diaspora/diaspora/pull/4353)
|
* Add oEmbed content to the mobile view [#4343](https://github.com/diaspora/diaspora/pull/4353)
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
= person_link(post.author)
|
= person_link(post.author)
|
||||||
|
|
||||||
.remove_post
|
.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")
|
= link_to(image_tag('deletelabel.png'), post_path(post), :method => :delete, :data => { :confirm => "#{t('are_you_sure')}" }, :class => "remove")
|
||||||
|
|
||||||
.info
|
.info
|
||||||
|
|
|
||||||
15
features/mobile/logged_out_browsing.feature
Normal file
15
features/mobile/logged_out_browsing.feature
Normal 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"
|
||||||
Loading…
Reference in a new issue