fix the specs; pull back guid in post_visibilities_controller
This commit is contained in:
parent
c622c08d49
commit
6f807f263a
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ class PostVisibilitiesController < ApplicationController
|
|||
def update
|
||||
#note :id references a postvisibility
|
||||
|
||||
@post = Post.where(:id => params[:post_id]).select("id, author_id").first
|
||||
@post = Post.where(:id => params[:post_id]).select("id, guid, author_id").first
|
||||
@contact = current_user.contact_for(@post.author)
|
||||
|
||||
if @contact && @vis = PostVisibility.where(:contact_id => @contact.id,
|
||||
|
|
|
|||
Loading…
Reference in a new issue