Closed (fixed)
Project:
ActivityPub
Version:
1.0.0-alpha20
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Feb 2025 at 14:52 UTC
Updated:
1 May 2025 at 13:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
koffer commentedComment #3
swentel commentedHmm, 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?
Comment #4
koffer commentedmmm Is a file/image field. I'm not sure where it is configured, does the code above indicate it?
Comment #5
swentel commentedIt'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)
Comment #6
koffer commentedThere is a image field linked

May be, if I do not select a field will work.
Comment #7
swentel commentedIf 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.
Comment #9
swentel commented