Skip to content

Commit

Permalink
Add owner_id to authorship params
Browse files Browse the repository at this point in the history
  • Loading branch information
atd committed Sep 25, 2013
1 parent 5781ece commit a0b1c0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/lib/social_stream/controllers/authorship.rb
Expand Up @@ -10,8 +10,9 @@ module Authorship
private

def set_author_ids
resource_params.first[:author_id] = current_subject.try(:actor_id)
resource_params.first[:author_id] = current_subject.try(:actor_id)
resource_params.first[:user_author_id] = current_user.try(:actor_id)
resource_params.first[:owner_id] ||= current_subject.try(:actor_id)
end
end
end
Expand Down

0 comments on commit a0b1c0d

Please sign in to comment.