diff options
author | ysksn <bluewhale1982@gmail.com> | 2019-02-03 03:11:38 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-02-02 19:11:38 +0100 |
commit | bcfff65195f557dc086470f91b4c90b15c004cf7 (patch) | |
tree | cdf805998758278b41cd8ab0cc8dd864d8047c57 /app/lib/activitypub | |
parent | 6a5e3da6b044e50635d293c2716883cc5627e4c8 (diff) |
Create Redisable#redis (#9633)
* Create Redisable * Use #redis instead of Redis.current
Diffstat (limited to 'app/lib/activitypub')
-rw-r--r-- | app/lib/activitypub/activity.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/lib/activitypub/activity.rb b/app/lib/activitypub/activity.rb index 87318fb1c..919678618 100644 --- a/app/lib/activitypub/activity.rb +++ b/app/lib/activitypub/activity.rb @@ -2,6 +2,7 @@ class ActivityPub::Activity include JsonLdHelper + include Redisable def initialize(json, account, **options) @json = json @@ -70,10 +71,6 @@ class ActivityPub::Activity @object_uri ||= value_or_id(@object) end - def redis - Redis.current - end - def distribute(status) crawl_links(status) |