Solutions:
file_list_usage
to run one query.Some of the code already exists in file_file_download
which, in itself benefits from this patch: instead of loading entities one by one we load them multiple by the entity type. Also, other consumers of this function will benefit from not getting pseudo-entities but real ones.
Needs review
7.0 ⚰️
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.