It's true that we don't check the attachments array of the remote notes in ActivityPub (although our notes are sent with one).
We only retrieve a remote attachment if that comes as part of the note's content (in the form of a link) (due to Embed plugin).
We intend to support fetching attachments from remote notices' attachment array in the future, we just didn't implement yet because notes usually come with links to the remote attachments and we didn't want to deal with the disambiguation of what is in the array as well as in the note's body and what's not.
Ideally these fallback urls wouldn't be included in the notice's body when federated via ActivityPub. This is yet something that requires further study and that we've been postponing as we don't see it as a priority for now...
@roytam is correct.
It's true that we don't check the attachments array of the remote notes in ActivityPub (although our notes are sent with one).
We only retrieve a remote attachment if that comes as part of the note's content (in the form of a link) (due to Embed plugin).
We intend to support fetching attachments from remote notices' attachment array in the future, we just didn't implement yet because notes usually come with links to the remote attachments and we didn't want to deal with the disambiguation of what is in the array as well as in the note's body and what's not.
Ideally these fallback urls wouldn't be included in the notice's body when federated via ActivityPub. This is yet something that requires further study and that we've been postponing as we don't see it as a priority for now...
(@roytam who are you btw?)
> we just didn't implement yet because notes usually come with links to the remote attachments
IIRC only pleroma does this. mastodon never put attachment link into notice body.
> (@roytam who are you btw?)
just a normal user. ;)
but I think we really need a workaround(for example, appending link(s) into notice body) for showing attachment(s) from mastodon AP status since mastodon doesn't put attachment link(s) into notice body, or mastodon AP notice's attachment(s) will be lost.
but I think we really need a workaround(for example, appending link(s) into notice body) for showing attachment(s) from mastodon AP status since mastodon doesn't put attachment link(s) into notice body, or mastodon AP notice's attachment(s) will be lost.
Hi!
One of federation problems I've seen it's that images from Mastodon are not shown at timelines.
Looking between logs and code seems that images and other media came as an [attachment] array that is not managed by GS and not saved with the notice.
Runnig nightly/2.0-dev with Apache and .htaccess sample.
Did increased debug traces so I can document a little more.
When an "object" with a notice from Mastodon came to create_notice() method it includes the array with the attachment.
And it's supposed that in that function, attachment should be collected and added to the notice, but it doesn't.
This is the notice content at the end of create_notice().
And at Notice::saveNew() in Notice.php.
Refs:
Original notice at mastodon.social https://mastodon.social/@CarmePont/103674488902743883
Notice at my node https://gnusocial.sierranorte.red/conversation/7439#notice-16071
I think that part is not being handled in plugin(s).
@roytam is correct.
It's true that we don't check the attachments array of the remote notes in ActivityPub (although our notes are sent with one).
We only retrieve a remote attachment if that comes as part of the note's content (in the form of a link) (due to Embed plugin).
We intend to support fetching attachments from remote notices' attachment array in the future, we just didn't implement yet because notes usually come with links to the remote attachments and we didn't want to deal with the disambiguation of what is in the array as well as in the note's body and what's not.
Ideally these fallback urls wouldn't be included in the notice's body when federated via ActivityPub. This is yet something that requires further study and that we've been postponing as we don't see it as a priority for now...
(@roytam who are you btw?)
IIRC only pleroma does this. mastodon never put attachment link into notice body.
just a normal user. ;)
by using StoreRemoteMedia plugin?
yes
but I think we really need a workaround(for example, appending link(s) into notice body) for showing attachment(s) from mastodon AP status since mastodon doesn't put attachment link(s) into notice body, or mastodon AP notice's attachment(s) will be lost.
@roytam: hm.... noted, that's a good idea, we will see the best way having that in mind :)