]> cat aescling's git repositories - mastodon.git/commitdiff
Fix typo in ActivityPub Create handler (#8952)
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 11 Oct 2018 00:10:15 +0000 (02:10 +0200)
committerGitHub <noreply@github.com>
Thu, 11 Oct 2018 00:10:15 +0000 (02:10 +0200)
Regression from #8951

app/lib/activitypub/activity/create.rb

index b889461cb0d014ed6befb2df6eb25cbe1e27f554..73475bf0295ff0b1945795c516bd9cc52ad7bcb5 100644 (file)
@@ -69,7 +69,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
   def attach_tags(status)
     @tags.each do |tag|
       status.tags << tag
-      TrendingTags.record_use!(hashtag, status.account, status.created_at) if status.public_visibility?
+      TrendingTags.record_use!(tag, status.account, status.created_at) if status.public_visibility?
     end
 
     @mentions.each do |mention|