Skip to content
Permalink
Browse files

bugfix

  • Loading branch information
angusmcleod committed Mar 21, 2019
1 parent ae72e91 commit 5062af3ba7778acceada769ab0964d7d74823962
Showing with 1 addition and 3 deletions.
  1. +1 −3 plugin.rb
@@ -181,7 +181,6 @@ def after_save_post(post, new_record = false)
if new_record
notified = [*notified_users[post.id]]
followers = post.is_first_post? ? author_posted_followers(post) : author_replied_followers(post)
puts "FOLLOWERS: #{followers.inspect}"
type = post.is_first_post? ? :following_posted : :following_replied
notify_users(followers - notified, type, post)
end
@@ -221,7 +220,7 @@ def notified_users

def create_notification(user, type, post, opts = {})
@current_notification_type = type
super(user, type, post, opts = {})
super(user, type, post, opts)
@current_notification_type = nil
end

@@ -232,7 +231,6 @@ def unread_posts(user, topic)
SELECT last_read_post_number FROM topic_users tu
WHERE tu.user_id = ? AND tu.topic_id = ? ),0)',
user.id, topic.id)
puts "HERE IS THE INTERMEDIATE: #{posts.inspect}"

posts = posts
.where("exists(

0 comments on commit 5062af3

Please sign in to comment.
You can’t perform that action at this time.