diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-11-13 16:28:07 +0100 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2018-11-13 16:28:07 +0100 |
commit | bfe2b9cc501205a07628b59b0a38a8643a4ca11c (patch) | |
tree | 78fa8ee6336dca2719ab0775b81ff98fe34808c6 /app/services/activitypub | |
parent | 2fe0cb16239ed86016ebea352425862a561b63a2 (diff) | |
parent | c875f19673e923e7a6e3c2b6656e96b863ca5915 (diff) |
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'app/services/activitypub')
-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 |