diff options
author | ThibG <thib@sitedethib.com> | 2018-11-10 23:59:51 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-11-10 23:59:51 +0100 |
commit | 7f5a4be58010123bad46c0c7644258630724a80e (patch) | |
tree | ecc4b9c025f314b19be96ca21f5f8371898a45ee /app/services | |
parent | 9b89c62d438acc48caa6cdf939ced90a75a86c5b (diff) |
Fix emoji update date processing (#9255)
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/activitypub/process_account_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/activitypub/process_account_service.rb b/app/services/activitypub/process_account_service.rb index c77858f1d..5c865dae2 100644 --- a/app/services/activitypub/process_account_service.rb +++ b/app/services/activitypub/process_account_service.rb @@ -232,7 +232,7 @@ class ActivityPub::ProcessAccountService < BaseService updated = tag['updated'] emoji = CustomEmoji.find_by(shortcode: shortcode, domain: @account.domain) - return unless emoji.nil? || image_url != emoji.image_remote_url || (updated && emoji.updated_at >= updated) + return unless emoji.nil? || image_url != emoji.image_remote_url || (updated && updated >= emoji.updated_at) emoji ||= CustomEmoji.new(domain: @account.domain, shortcode: shortcode, uri: uri) emoji.image_remote_url = image_url |