forked from bofh/fetsite
picture url bei neuigkeiten ohne locale und theme
This commit is contained in:
@@ -69,7 +69,7 @@ class NeuigkeitenController < ApplicationController
|
|||||||
@neuigkeit = Neuigkeit.find(params[:id])
|
@neuigkeit = Neuigkeit.find(params[:id])
|
||||||
unless @neuigkeit.picture.url.nil?
|
unless @neuigkeit.picture.url.nil?
|
||||||
picture_url=URI(root_url)
|
picture_url=URI(root_url)
|
||||||
picture_url.path=@neuigkeit.picture.url
|
picture_url.path=@neuigkeit.picture.url(:locale=>nil, :theme=>nil)
|
||||||
end
|
end
|
||||||
unless @neuigkeit.published?
|
unless @neuigkeit.published?
|
||||||
redirect_to [@neuigkeit.rubrik,@neuigkeit], notice: 'Neuigkeit muss veröffentlicht sein um sie auf Facebook zu posten.'
|
redirect_to [@neuigkeit.rubrik,@neuigkeit], notice: 'Neuigkeit muss veröffentlicht sein um sie auf Facebook zu posten.'
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<% set_meta_tags :author => fetprofile_path(@neuigkeit.author.fetprofile) unless @neuigkeit.author.fetprofile.nil? %>
|
<% set_meta_tags :author => fetprofile_path(@neuigkeit.author.fetprofile) unless @neuigkeit.author.fetprofile.nil? %>
|
||||||
<% unless @neuigkeit.picture.url.nil?
|
<% unless @neuigkeit.picture.url.nil?
|
||||||
picture_url=URI(root_url)
|
picture_url=URI(root_url)
|
||||||
picture_url.path=@neuigkeit.picture.url
|
picture_url.path=@neuigkeit.picture.url(:locale=>nil, :theme=>nil)
|
||||||
end
|
end
|
||||||
%>
|
%>
|
||||||
<% set_meta_tags :og => {
|
<% set_meta_tags :og => {
|
||||||
|
|||||||
Reference in New Issue
Block a user