aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/tweet.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/tweet.rb')
-rw-r--r--app/models/tweet.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/tweet.rb b/app/models/tweet.rb
index 40b4c05..37e9930 100644
--- a/app/models/tweet.rb
+++ b/app/models/tweet.rb
@@ -97,7 +97,7 @@ class Tweet < ActiveRecord::Base
exsts = sts.select { |st| currenth[st.id] }.map { |st| [st.id, st] }.to_h
currenth.each do |id, tweet|
- st = exsts[id]
+ st = exsts[id] or next
tweet.update(text: extract_entities(st.attrs),
source: st.attrs[:source],
in_reply_to_id: (tweet.in_reply_to_id || st.attrs[:in_reply_to_status_id]),