From 46c48dbebf7cca2d385ccfc2ce915eb40de29f7f Mon Sep 17 00:00:00 2001 From: Pavel Date: Sat, 17 Apr 2010 05:48:14 +0300 Subject: [PATCH] bug with publishing by pulblicator is removed --- appoyo/app/controllers/iframe_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appoyo/app/controllers/iframe_controller.rb b/appoyo/app/controllers/iframe_controller.rb index d7df963..f26e128 100644 --- a/appoyo/app/controllers/iframe_controller.rb +++ b/appoyo/app/controllers/iframe_controller.rb @@ -65,7 +65,7 @@ class IframeController < ApplicationController action = I18n.t :i_like_the end gallery = Fbgallery.find(params[:app_params][:gallery_id]) - @json_code = "{'content':{'attachment':{'name' : '#{gallery.name}','href' : '#{Facebook_app}gallery?id=#{gallery.id}','caption' : '#{action}', 'description' : '{ I18n.t :press_on_the_play_button}', 'media' : [{'type' : 'video', 'video_src' : '#{gallery.swf_link}?#{gallery.flash_params}', 'preview_img' : '#{gallery.preview_link}', 'video_link' : '#{Facebook_app}gallery?id=#{gallery.id}', 'video_title' : '#{gallery.name}'}] } }, 'method':'publisher_getFeedStory'}" + @json_code = "{'content':{'attachment':{'name' : '#{gallery.name}','href' : '#{Facebook_app}gallery?id=#{gallery.id}','caption' : '#{action}', 'description' : '#{I18n.t :press_on_the_play_button}', 'media' : [{'type' : 'video', 'video_src' : '#{gallery.swf_link}?#{gallery.flash_params}', 'preview_img' : '#{gallery.preview_link}', 'video_link' : '#{Facebook_app}gallery?id=#{gallery.id}', 'video_title' : '#{gallery.name}'}] } }, 'method':'publisher_getFeedStory'}" @json_code = ActiveSupport::JSON.decode(@json_code) #if there is a first request -- 2.11.4.GIT