diff options
-rw-r--r-- | app/models/user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index bcd46e96e..d0d1df834 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -341,7 +341,7 @@ class User < Principal end def self.find_by_rss_key(key) - token = Token.find_by_value(key.to_s) + token = Token.find_by_action_and_value('feeds', key.to_s) token && token.user.active? ? token.user : nil end |