Disable preview images generation for remote users
This commit is contained in:
parent
d86e6a6949
commit
8c34b23c35
2 changed files with 26 additions and 1 deletions
|
@ -459,6 +459,9 @@ def generate_user_preview_image_task(user_id):
|
|||
|
||||
user = models.User.objects.get(id=user_id)
|
||||
|
||||
if not user.local:
|
||||
return
|
||||
|
||||
texts = {
|
||||
"text_one": user.display_name,
|
||||
"text_three": f"@{user.localname}@{settings.DOMAIN}",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue