« git@code.facil.services:facil/parlote-facil.git » n'existait pas sur « 78953fe2bf7678409b1c59d051b1f9d354db659e »
Newer
Older
# Copyright (c) 2010, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
class PostsController < ApplicationController
skip_before_filter :count_requests
skip_before_filter :set_invites
skip_before_filter :which_action_and_user
skip_before_filter :set_grammatical_gender
@post = Post.where(:id => params[:id], :public => true).includes(:author, :comments => :author).first
if @person.owner_id
I18n.locale = @person.owner.language
render "posts/#{@post.class.to_s.underscore}", :layout => true
else