merged from gramsrv upstream

This commit is contained in:
onysd 2026-09-01 12:06:31 +03:00
parent 79c64ee916
commit 21a0856587
651 changed files with 54774 additions and 4590 deletions

View file

@ -338,9 +338,13 @@ func (r *Router) mentionedUserIDsFromDomainMessage(ctx context.Context, currentU
}
}
if identity != nil {
for _, username := range extractMentionUsernames(message, domain.MaxChannelMentionRecipients-len(out)) {
blocked := mentionScanBlockedSpansFromDomainEntities(message, entities)
for _, username := range extractMentionUsernames(message, domain.MaxChannelMentionRecipients-len(out), blocked) {
user, found, err := identity.ResolveUsername(ctx, currentUserID, username)
if err != nil {
if isMentionResolveMiss(err) {
continue
}
return nil, internalErr()
}
if found {