mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 04:35:39 +08:00
DEV: Remove unused method.
This commit is contained in:
parent
588f61f717
commit
6815f777f9
@ -199,8 +199,8 @@ class UserNotifications < ActionMailer::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Try to find 3 interesting stats for the top of the digest
|
# Try to find 3 interesting stats for the top of the digest
|
||||||
|
new_topics_count = Topic.for_digest(user, min_date).count
|
||||||
|
|
||||||
new_topics_count = Topic.new_since_last_seen(user, min_date).count
|
|
||||||
if new_topics_count == 0
|
if new_topics_count == 0
|
||||||
# We used topics from new users instead, so count should match
|
# We used topics from new users instead, so count should match
|
||||||
new_topics_count = topics_for_digest.size
|
new_topics_count = topics_for_digest.size
|
||||||
|
@ -423,12 +423,6 @@ class Topic < ActiveRecord::Base
|
|||||||
topics
|
topics
|
||||||
end
|
end
|
||||||
|
|
||||||
# Using the digest query, figure out what's new for a user since last seen
|
|
||||||
def self.new_since_last_seen(user, since, featured_topic_ids = nil)
|
|
||||||
topics = Topic.for_digest(user, since)
|
|
||||||
featured_topic_ids ? topics.where("topics.id NOT IN (?)", featured_topic_ids) : topics
|
|
||||||
end
|
|
||||||
|
|
||||||
def meta_data=(data)
|
def meta_data=(data)
|
||||||
custom_fields.replace(data)
|
custom_fields.replace(data)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user