]> cat aescling's git repositories - mastodon.git/commit
Add semi-support for Video/Image objects in ActivityPub (#5848)
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 30 Nov 2017 03:06:20 +0000 (04:06 +0100)
committerGitHub <noreply@github.com>
Thu, 30 Nov 2017 03:06:20 +0000 (04:06 +0100)
commit4c6b5dbe96b565d3db3cbf0912f3b9911bc3922a
tree29e04db6b7f9f6caa9e4c76c30414a8dbcae7ec4
parent85e97ecab6db67faefb64557af9b2271d2b23735
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
app/helpers/jsonld_helper.rb
app/lib/activitypub/activity/create.rb
app/lib/formatter.rb
app/services/activitypub/fetch_remote_status_service.rb
app/services/activitypub/process_account_service.rb
spec/services/activitypub/fetch_remote_status_service_spec.rb