We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca5fd28 commit 4f86405Copy full SHA for 4f86405
backend/app/services/paste_service.py
@@ -205,7 +205,7 @@ def verify_storage_limit(self):
205
async def get_legacy_paste_by_name(self, paste_id: str) -> LegacyPasteResponse | None:
206
"""Get legacy Hastebin-format paste."""
207
paste_md5: str = hashlib.md5(paste_id.encode()).hexdigest() # noqa: S324 - MD5 used for legacy key format, not security
208
- storage_key = f"hastebin/{paste_md5}"
+ storage_key = f"hastebin/{paste_md5}.txt"
209
210
try:
211
data = await self.storage_client.get_object(storage_key)
0 commit comments