From ef8dd9d4b4d6c4d8ff2f58a2188e40d0a6024104 Mon Sep 17 00:00:00 2001 From: echarp Date: Sun, 5 Oct 2014 21:38:12 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20pour=20l'url=20publi=C3=A9e=20dans?= =?UTF-8?q?=20twitter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/moderations_controller.rb | 2 +- app/views/moderations/validate.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/moderations_controller.rb b/app/controllers/moderations_controller.rb index 548e83ff..49f767ee 100644 --- a/app/controllers/moderations_controller.rb +++ b/app/controllers/moderations_controller.rb @@ -101,7 +101,7 @@ class ModerationsController < ApplicationController config.access_token = ENV['TWITTER_ACCESS_TOKEN'] config.access_token_secret = ENV['TWITTER_ACCESS_SECRET'] end - client.update "#{@event.to_tweet events_url(@event)}" if client.consumer_key + client.update "#{@event.to_tweet event_url(@event)}" if client.consumer_key end def send_destroy_mails diff --git a/app/views/moderations/validate.html.haml b/app/views/moderations/validate.html.haml index ca82c879..57cd7678 100644 --- a/app/views/moderations/validate.html.haml +++ b/app/views/moderations/validate.html.haml @@ -22,7 +22,7 @@ %h3=t '.tweet_helper' - = @event.to_tweet events_url @event + = @event.to_tweet event_url @event %fieldset %legend