Skip to content

Commit ccf7da3

Browse files
fix: profile_title get admin title if exists
1 parent c96cc06 commit ccf7da3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/operation/subscription.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,11 @@ async def get_format_variables(self, user: UsersResponseWithInbounds) -> dict:
183183
sub_settings: SubSettings = await subscription_settings()
184184
format_variables = setup_format_variables(user)
185185
sub_url = await UserOperation.generate_subscription_url(user)
186+
formatted_title = SubscriptionOperation._format_profile_title(user, format_variables, sub_settings)
186187

187-
format_variables.update({"PROFILE_TITLE": sub_settings.profile_title})
188+
format_variables.update({"PROFILE_TITLE": formatted_title})
188189
format_variables.update({"url": sub_url})
190+
189191
return format_variables
190192

191193
async def user_subscription_with_client_type(

0 commit comments

Comments
 (0)