mirror of
https://github.com/diaspora/diaspora.git
synced 2026-01-10 07:38:10 -05:00
just kidding. totally going to namespace users
This commit is contained in:
@@ -52,7 +52,7 @@ module ApplicationHelper
|
||||
opts[:class] ||= ""
|
||||
opts[:class] << " self" if defined?(user_signed_in?) && user_signed_in? && current_user.person == person
|
||||
if person.local?
|
||||
"<a href='#{person.diaspora_handle.split('@')[0]}' class='#{opts[:class]}'>
|
||||
"<a href=/u/'#{person.diaspora_handle.split('@')[0]}' class='#{opts[:class]}'>
|
||||
#{h(person.name)}
|
||||
</a>".html_safe
|
||||
else
|
||||
@@ -72,7 +72,7 @@ module ApplicationHelper
|
||||
link_to person_image_tag(person, opts[:size]), person_photos_path(person)
|
||||
else
|
||||
if person.local?
|
||||
"<a href='#{person.diaspora_handle.split('@')[0]}' class='#{opts[:class]}'>
|
||||
"<a href='/u/#{person.diaspora_handle.split('@')[0]}' class='#{opts[:class]}'>
|
||||
#{person_image_tag(person)}
|
||||
</a>".html_safe
|
||||
else
|
||||
|
||||
@@ -154,7 +154,7 @@ Diaspora::Application.routes.draw do
|
||||
|
||||
get 'mobile/toggle', :to => 'home#toggle_mobile', :as => 'toggle_mobile'
|
||||
|
||||
get ':username' => 'people#show', :as => 'user_profile'
|
||||
get '/u/:username' => 'people#show', :as => 'user_profile'
|
||||
# Startpage
|
||||
|
||||
root :to => 'home#show'
|
||||
|
||||
Reference in New Issue
Block a user