diff --git a/app/controllers/neuigkeiten_controller.rb b/app/controllers/neuigkeiten_controller.rb index 05af5d3..5cebec2 100755 --- a/app/controllers/neuigkeiten_controller.rb +++ b/app/controllers/neuigkeiten_controller.rb @@ -69,7 +69,7 @@ class NeuigkeitenController < ApplicationController @neuigkeit = Neuigkeit.find(params[:id]) unless @neuigkeit.picture.url.nil? picture_url=URI(root_url) - picture_url.path=@neuigkeit.picture.url + picture_url.path=@neuigkeit.picture.url(:locale=>nil, :theme=>nil) end unless @neuigkeit.published? redirect_to [@neuigkeit.rubrik,@neuigkeit], notice: 'Neuigkeit muss veröffentlicht sein um sie auf Facebook zu posten.' diff --git a/app/views/neuigkeiten/show.html.erb b/app/views/neuigkeiten/show.html.erb index e96a52e..22a1a98 100755 --- a/app/views/neuigkeiten/show.html.erb +++ b/app/views/neuigkeiten/show.html.erb @@ -3,7 +3,7 @@ <% set_meta_tags :author => fetprofile_path(@neuigkeit.author.fetprofile) unless @neuigkeit.author.fetprofile.nil? %> <% unless @neuigkeit.picture.url.nil? picture_url=URI(root_url) - picture_url.path=@neuigkeit.picture.url + picture_url.path=@neuigkeit.picture.url(:locale=>nil, :theme=>nil) end %> <% set_meta_tags :og => {