Comment on 2 peoples connected raise an error #258

Closed
kpitn opened this Issue May 3, 2012 · 1 comment

Projects

None yet

2 participants

@kpitn
kpitn commented May 3, 2012

In the demo : http://demo-social-stream.dit.upm.es/

When i write a comment under : XX and YY are now connected.
This message appears in an pop up :

Activity object relation ids not allowed: [2764], author_id: 632, owner_id: 678

In my application i have this trace :

Started POST "/comments" for XXX.XXX.XXX.XXX. at 2012-04-03 20:52:20 +0200
Processing by CommentsController#create as JS
  Parameters: {"utf8"=>"~\~S", "authenticity_token"=>"Ydy2PxkegQdRZDAU5JeNH7K3Vu3d9ntgHM6C+Ve0sI8=", "comment"=>{"owner_id"=>"1", "_activity_parent_id"=>"413", "text"==
>"Cool"}, "commit"=>"Publier"}
  Rendered /gems/social_stream-base-0.20.0/app/views/comments/create.js.erb (69.1ms)
Completed 500 Internal Server Error in 213ms

ActionView::Template::Error (undefined method `parent' for nil:NilClass):
    1: //Display the new comment
    2: $("#comments_activity_<%= @comment.post_activity.parent.id %>").append("<%= escape_javascript(render @comment.post_activity) %>");
    3: $(".activities_comment_btn").hide();
    4: $(".input_new_comments").each(function() {
    5:   $(this).focus().val("").blur();
  social_stream-base (0.20.0) app/views/comments/create.js.erb:2:in `__gems_social_stream_base________app_views_comments_create_js_erb___1138371499563917366_63854980'

Other comments (on post) works correctly

@atd
Collaborator
atd commented Mar 17, 2013

Comment on follow activities is not supported in 2.0

@atd atd closed this Mar 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment