From 65afa0fe019c5c411c336975e306a573df01586e Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Tue, 3 Dec 2019 00:43:06 -0600 Subject: fix `thread:sharekey:sync` by spelling `earliest` correctly --- app/lib/bangtags.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb index 507a99b95..6ca81b85d 100644 --- a/app/lib/bangtags.rb +++ b/app/lib/bangtags.rb @@ -312,7 +312,7 @@ class Bangtags if status.conversation_id.present? roars = Status.where(conversation_id: status.conversation_id, account_id: @account.id) earliest_roar = roars.last # The results are in reverse-chronological order. - if cmd[2] == 'new' || earlist_roar.sharekey.blank? + if cmd[2] == 'new' || earliest_roar.sharekey.blank? sharekey = SecureRandom.urlsafe_base64(32) earliest_roar.sharekey = sharekey earliest_roar.save -- cgit