From 5ee1b68d6e52a43ba81232fbf8a595d49f3b390f Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Thu, 13 Nov 2014 10:33:19 +0100 Subject: [PATCH] fetprofile picture url --- app/views/fetprofiles/show.html.erb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/views/fetprofiles/show.html.erb b/app/views/fetprofiles/show.html.erb index aafe588..f3e656c 100644 --- a/app/views/fetprofiles/show.html.erb +++ b/app/views/fetprofiles/show.html.erb @@ -1,8 +1,13 @@ <%= content_for :header do %> Fetsite - <%= @fetprofile.name %> +<% unless @fetprofile.picture.url.nil? + picture_url=URI(root_url) + picture_url.path=@fetprofile.picture.portrait.url +end +%> <% set_meta_tags :og => { - :image => @fetprofile.picture.portrait.url.to_s, + :image => picture_url.to_s, :title => @fetprofile.name.to_s , :type => "profile", :url=>fetprofile_url(@fetprofile,:theme=>nil),