Skip to content

Commit

Permalink
fix: full_picture_url
Browse files Browse the repository at this point in the history
  • Loading branch information
duri0214 committed Oct 6, 2024
1 parent dae2345 commit 040989a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions linebot_engine/domain/service/line_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import hmac
import os
import secrets
from pathlib import Path

import requests
from django.core.files.base import ContentFile
Expand Down Expand Up @@ -92,11 +91,8 @@ def handle_event(self, event: WebhookEvent, line_user_id: str):
picture=picture_file,
)

full_picture_url = str(
Path(SITE_URL)
/ MEDIA_URL
/ "linebot_engine/images"
/ picture_file.name
full_picture_url = (
f"{SITE_URL}{MEDIA_URL}/linebot_engine/images/{picture_file.name}"
)
line_bot_api.reply_message(
event.reply_token, TextSendMessage(text=full_picture_url)
Expand Down

0 comments on commit 040989a

Please sign in to comment.