[backend] Fix build

This commit is contained in:
Laura Hausmann 2024-02-26 23:06:56 +01:00
parent 89079f09c7
commit 13f0f0e686
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -21,7 +21,7 @@ public class UserProfileMentionsResolver(ActivityPub.UserResolver userResolver,
.Where(p => p is { Name: not null, Value: not null })
.ToList() ?? [];
if (fields is not { Count: > 0 } && (actor.MkSummary ?? actor.Summary) == null) return [];
if (fields is not { Count: > 0 } && (actor.MkSummary ?? actor.Summary) == null) return ([], []);
var parsedFields = await fields.SelectMany<ASField, string?>(p => [p.Name, p.Value])
.Select(async p => await MfmConverter.ExtractMentionsFromHtmlAsync(p))
.AwaitAllAsync();