Add semi-support for Video/Image objects in ActivityPub (#5848)
* Add semi-support for Video/Image objects in ActivityPub Video and Image objects will create corresponding status records with manually crafted text contents (title + URL) * Extract html-url-finding logic into JsonLdHelper * Fallback to id when url missing, extract supported object types
This commit is contained in:
parent
85e97ecab6
commit
4c6b5dbe96
6 changed files with 103 additions and 26 deletions
|
@ -42,7 +42,7 @@ class ActivityPub::FetchRemoteStatusService < BaseService
|
|||
end
|
||||
|
||||
def expected_type?
|
||||
%w(Note Article).include? @json['type']
|
||||
(ActivityPub::Activity::Create::SUPPORTED_TYPES + ActivityPub::Activity::Create::CONVERTED_TYPES).include? @json['type']
|
||||
end
|
||||
|
||||
def needs_update(actor)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue