Skip to content

Commit

Permalink
add event creation policy to user following
Browse files Browse the repository at this point in the history
  • Loading branch information
aajjbb committed Aug 21, 2017
1 parent 20f9167 commit d5daf4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions applications/user.moon
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ class MoonRocksUser extends lapis.Application
"You can't follow yourself"

@flow("followings")\follow_object followed_user, "subscription"
@flow("events")\create_event_and_deliver followed_user, @params.type

redirect_to: @url_for followed_user

Expand All @@ -372,5 +373,6 @@ class MoonRocksUser extends lapis.Application
"Invalid User"

@flow("followings")\unfollow_object unfollowed_user, "subscription"
@flow("events")\remove_from_timeline unfollowed, "subscription"

redirect_to: @url_for unfollowed_user

0 comments on commit d5daf4b

Please sign in to comment.