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
Showing
- app/helpers/jsonld_helper.rb 18 additions, 0 deletionsapp/helpers/jsonld_helper.rb
- app/lib/activitypub/activity/create.rb 38 additions, 13 deletionsapp/lib/activitypub/activity/create.rb
- app/lib/formatter.rb 9 additions, 6 deletionsapp/lib/formatter.rb
- app/services/activitypub/fetch_remote_status_service.rb 1 addition, 1 deletionapp/services/activitypub/fetch_remote_status_service.rb
- app/services/activitypub/process_account_service.rb 1 addition, 6 deletionsapp/services/activitypub/process_account_service.rb
- spec/services/activitypub/fetch_remote_status_service_spec.rb 36 additions, 0 deletions.../services/activitypub/fetch_remote_status_service_spec.rb
Loading
Please register or sign in to comment