[backend] Fix build
This commit is contained in:
parent
89079f09c7
commit
13f0f0e686
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ public class UserProfileMentionsResolver(ActivityPub.UserResolver userResolver,
|
||||||
.Where(p => p is { Name: not null, Value: not null })
|
.Where(p => p is { Name: not null, Value: not null })
|
||||||
.ToList() ?? [];
|
.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])
|
var parsedFields = await fields.SelectMany<ASField, string?>(p => [p.Name, p.Value])
|
||||||
.Select(async p => await MfmConverter.ExtractMentionsFromHtmlAsync(p))
|
.Select(async p => await MfmConverter.ExtractMentionsFromHtmlAsync(p))
|
||||||
.AwaitAllAsync();
|
.AwaitAllAsync();
|
||||||
|
|
Loading…
Add table
Reference in a new issue