@ -106,21 +106,23 @@ namespace Ombi.Notifications.Agents
} ;
var fields = new List < DiscordField > ( ) ;
if ( model . Data . TryGetValue ( "Alias" , out var alias ) )
if ( ! settings . HideUser )
{
if ( alias . HasValue ( ) )
if ( model . Data . TryGetValue ( "Alias" , out var alias ) )
{
fields . Add ( new DiscordField { name = "Requested By" , value = alias , inline = true } ) ;
if ( alias . HasValue ( ) )
{
fields . Add ( new DiscordField { name = "Requested By" , value = alias , inline = true } ) ;
}
}
}
else
{
if ( model . Data . TryGetValue ( "RequestedUser" , out var requestedUser ) )
else
{
if ( requestedUser. HasValue ( ) )
if ( model . Data . TryGetValue ( "RequestedUser" , out var requestedUser ) )
{
fields . Add ( new DiscordField { name = "Requested By" , value = requestedUser , inline = true } ) ;
if ( requestedUser . HasValue ( ) )
{
fields . Add ( new DiscordField { name = "Requested By" , value = requestedUser , inline = true } ) ;
}
}
}
}