- Issue created by @koffer
- π§πͺBelgium swentel
Hmm, interesting. Attached patch makes sure $file is actually a valid object. However, it's interesting that there's no file loaded. Did you upload one? And if yes, is it a media field or a file/image field?
- π²π½Mexico koffer
mmm Is a file/image field. I'm not sure where it is configured, does the code above indicate it?
- π§πͺBelgium swentel
It's configured on the activitypub types screen at /admin/config/services/activitypub/activitypub-type.
If you are using the standard note, check which field is assigned to the attachment fields (there's image, video and audio) (e.g. at /admin/config/services/activitypub/activitypub-type/note) - π²π½Mexico koffer
There is a image field linked
May be, if I do not select a field will work.
- π§πͺBelgium swentel
If you deselect it, that it will probably work indeed (but with the patch it will be ok too).
Question is: did you upload a file for that note? If so, than there is a problem though with the code itself, I'll test it myself as well.