Only showing most recent notification from a watched topic?

Something fishy is definitely going on here… the notification from merefield seems to be missing from the database as well :thinking:

[5] pry(main)> User.find_by_username("tophee").notifications.order(created_at: :desc).limit(10).pluck(:data).map { |d| JSON.parse(d) }.map {|j| j["display_username"] }
=> ["david", "david", "david", "david", "codinghorror", "zogstrip", "gpetrov", "SidV", "jomaxro", "sam"]

Now that you have a fresh notification, has anything changed @tophee?

2 Likes