Commit 59a436eb authored by Lukas Matt's avatar Lukas Matt

Diaspora script post to all aspects

parent 033c2fb5
......@@ -7,12 +7,13 @@ publicPost = StatusMessageCreationService.new(user).create(
public: true
)
aspectIds = Aspect.find_each.collect {|obj| obj.id if obj.user_id == 1 }
privatePost = StatusMessageCreationService.new(user).create(
status_message: {
text: "StatusMessageCreationService privatePost"
},
public: false,
aspect_ids: [1]
aspect_ids: aspectIds
)
CommentService.new(user).create(publicPost.id, "publicComment")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment