mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 06:51:41 +00:00
feat: poder acceder a la inbox
This commit is contained in:
parent
c23d931dd4
commit
c02a976206
1 changed files with 6 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
require 'distributed_press/v1/social/client'
|
require 'distributed_press/v1/social/client'
|
||||||
require 'distributed_press/v1/social/hook'
|
require 'distributed_press/v1/social/hook'
|
||||||
|
require 'distributed_press/v1/social/inbox'
|
||||||
require 'distributed_press/v1/social/dereferencer'
|
require 'distributed_press/v1/social/dereferencer'
|
||||||
require 'httparty/cache/store/redis'
|
require 'httparty/cache/store/redis'
|
||||||
|
|
||||||
|
@ -43,6 +44,11 @@ class SocialInbox
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# @return [DistributedPress::V1::Social::Inbox]
|
||||||
|
def inbox
|
||||||
|
@inbox ||= DistributedPress::V1::Social::Inbox.new(client: client, actor: actor)
|
||||||
|
end
|
||||||
|
|
||||||
# @return [DistributedPress::V1::Social::Dereferencer]
|
# @return [DistributedPress::V1::Social::Dereferencer]
|
||||||
def dereferencer
|
def dereferencer
|
||||||
@dereferencer ||= DistributedPress::V1::Social::Dereferencer.new(client: client)
|
@dereferencer ||= DistributedPress::V1::Social::Dereferencer.new(client: client)
|
||||||
|
|
Loading…
Reference in a new issue