Skip to content

Commit

Permalink
add an event to the followed/starred user when it's profile is follow…
Browse files Browse the repository at this point in the history
…ed/starred
  • Loading branch information
aajjbb committed Aug 5, 2017
1 parent 29738fc commit 2391d72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions models/timeline_events.moon
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@ class TimelineEvents extends Model
else
@@create(user, event)

if Events\model_for_object_type(event.object_object_type) == Users
@@create(Users\find(event.object_object_id), event)

@user_timeline: (user) =>
@@select "where user_id = ?", user.id

0 comments on commit 2391d72

Please sign in to comment.