FIX: do not attempt to fetch pms when anonymous

FIX: do not attempt to fetch pms when anonymous

diff --git a/lib/discourse_post_event/event_finder.rb b/lib/discourse_post_event/event_finder.rb
index 7029750..aacfb94 100644
--- a/lib/discourse_post_event/event_finder.rb
+++ b/lib/discourse_post_event/event_finder.rb
@@ -28,7 +28,7 @@ module DiscoursePostEvent
     end
 
     def self.private_messages(user)
-      Topic.private_messages_for_user(user)
+      user ? Topic.private_messages_for_user(user) : Topic.none
     end
   end
 end

GitHub sha: 51318562