diff options
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/bangtags.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb index 6f2f03d30..c1bb62c3d 100644 --- a/app/lib/bangtags.rb +++ b/app/lib/bangtags.rb @@ -251,6 +251,7 @@ class Bangtags if roar.sharekey.present? roar.sharekey = nil roar.save + Rails.cache.delete("statuses/#{roar.id}") end end end @@ -262,6 +263,7 @@ class Bangtags sharekey = SecureRandom.urlsafe_base64(32) earliest_roar.sharekey = sharekey earliest_roar.save + Rails.cache.delete("statuses/#{earliest_roar.id}") else sharekey = earliest_roar.sharekey end @@ -269,11 +271,13 @@ class Bangtags if roar.sharekey != sharekey roar.sharekey = sharekey roar.save + Rails.cache.delete("statuses/#{roar.id}") end end else status.sharekey = SecureRandom.urlsafe_base64(32) status.save + Rails.cache.delete("statuses/#{status.id}") end end end |