diff --git a/app/models/user.rb b/app/models/user.rb index bcc6096..33205d0 100755 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -77,8 +77,8 @@ logger.debug auth.to_s def text if self.fetprofile.nil? self.email -else -self.fetprofile.name -end + else + self.fetprofile.name + end end end diff --git a/app/views/neuigkeiten/show.html.erb b/app/views/neuigkeiten/show.html.erb index 35808b4..7ff13fc 100755 --- a/app/views/neuigkeiten/show.html.erb +++ b/app/views/neuigkeiten/show.html.erb @@ -1,6 +1,6 @@ <%= content_for :header do %> Fetsite - <%= @neuigkeit.title %> (<%= @neuigkeit.rubrik.name %>) -<% set_meta_tags :author => fetprofile_path(@neuigkeit.author.fetprofile) %> +<% set_meta_tags :author => fetprofile_path(@neuigkeit.author.fetprofile) unless @neuigkeit.author.fetprofile.nil? %> <% set_meta_tags :og => { :image => @neuigkeit.picture.url.to_s, :title => @neuigkeit.title.to_s + " (" + @neuigkeit.rubrik.name.to_s + ")",