fix: relationships not working on some clients

This commit is contained in:
Mar0xy 2023-10-29 14:31:26 +01:00
parent b596a4978f
commit cd1083cc30
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828

View file

@ -282,7 +282,7 @@ export class MastodonApiServerService {
// displayed without being logged in // displayed without being logged in
let users; let users;
try { try {
let ids = _request.query ? (_request.query as any)['id[]'] : null; let ids = _request.query ? (_request.query as any)['id[]'] ?? (_request.query as any)['id'] : null;
if (typeof ids === 'string') { if (typeof ids === 'string') {
ids = [ids]; ids = [ids];
} }