Skip to content
Extraits de code Groupes Projets
Valider c2b84fd9 rédigé par ilya's avatar ilya
Parcourir les fichiers

added a public key to post

parent 52313b79
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -52,7 +52,7 @@ class AspectsController < ApplicationController ...@@ -52,7 +52,7 @@ class AspectsController < ApplicationController
@fb_access_url = MiniFB.oauth_url(FB_APP_ID, APP_CONFIG[:pod_url] + "services/create", @fb_access_url = MiniFB.oauth_url(FB_APP_ID, APP_CONFIG[:pod_url] + "services/create",
:scope=>MiniFB.scopes.join(",")) :scope=>MiniFB.scopes.join(","))
@posts = current_user.visible_posts(:by_members_of => :all).paginate :page => params[:page], :per_page => 15, :order => 'created_at DESC' @posts = current_user.raw_visible_posts.all(:public => true, :order => 'created_at DESC').paginate :page => params[:page], :per_page => 15, :order => 'created_at DESC'
respond_with @aspect respond_with @aspect
end end
......
...@@ -13,6 +13,9 @@ class Post ...@@ -13,6 +13,9 @@ class Post
xml_accessor :_id xml_accessor :_id
xml_accessor :person, :as => Person xml_accessor :person, :as => Person
xml_reader :public
key :public , Boolean, :default => false
key :person_id, ObjectId key :person_id, ObjectId
key :user_refs, Integer, :default => 0 key :user_refs, Integer, :default => 0
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter