mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 04:31:41 +00:00
Merge branch 'issue-15109' into production.panel.sutty.nl
This commit is contained in:
commit
de90e434eb
2 changed files with 7 additions and 1 deletions
|
@ -90,7 +90,7 @@ class DeploySocialDistributedPress < Deploy
|
||||||
|
|
||||||
response = hook_client.put(event: event, hook: webhook)
|
response = hook_client.put(event: event, hook: webhook)
|
||||||
|
|
||||||
raise ArgumentError, response.parsed_body unless response.ok?
|
raise ArgumentError, response.body unless response.ok?
|
||||||
rescue ArgumentError => e
|
rescue ArgumentError => e
|
||||||
ExceptionNotifier.notify_exception(e, data: { site_id: site.name, usuarie_id: rol.usuarie_id })
|
ExceptionNotifier.notify_exception(e, data: { site_id: site.name, usuarie_id: rol.usuarie_id })
|
||||||
end
|
end
|
||||||
|
|
|
@ -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