mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 16:28:59 +00:00
Merge commit 'dbb20f76a781defe35d077529c8269d712c1fbd2' into glitch-soc/merge-upstream
Conflicts: - `tsconfig.json`: glitch-soc had extra paths under `app/javascript/flavours`, but upstream added `app/javascript` as a whole, so updated to upstream's.
This commit is contained in:
@@ -223,6 +223,12 @@ class User < ApplicationRecord
|
||||
end
|
||||
end
|
||||
|
||||
def email_domain
|
||||
Mail::Address.new(email).domain
|
||||
rescue Mail::Field::ParseError
|
||||
nil
|
||||
end
|
||||
|
||||
def update_sign_in!(new_sign_in: false)
|
||||
old_current = current_sign_in_at
|
||||
new_current = Time.now.utc
|
||||
|
||||
Reference in New Issue
Block a user