From ee5213093a084c2eb5fa97fb4bdea6019dda5cf5 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 6 Dec 2018 17:36:11 +0100 Subject: Add profile directory (#9427) Fix #5578 --- app/models/concerns/account_associations.rb | 3 +++ app/models/concerns/account_counters.rb | 1 + 2 files changed, 4 insertions(+) (limited to 'app/models/concerns') diff --git a/app/models/concerns/account_associations.rb b/app/models/concerns/account_associations.rb index 9dba8000d..38e2481c5 100644 --- a/app/models/concerns/account_associations.rb +++ b/app/models/concerns/account_associations.rb @@ -50,5 +50,8 @@ module AccountAssociations # Account migrations belongs_to :moved_to_account, class_name: 'Account', optional: true + + # Hashtags + has_and_belongs_to_many :tags end end diff --git a/app/models/concerns/account_counters.rb b/app/models/concerns/account_counters.rb index fa3ec9a3d..3581df8dd 100644 --- a/app/models/concerns/account_counters.rb +++ b/app/models/concerns/account_counters.rb @@ -16,6 +16,7 @@ module AccountCounters :followers_count=, :increment_count!, :decrement_count!, + :last_status_at, to: :account_stat def account_stat -- cgit