account for the ?m parameters

master
Aevann 2024-11-14 18:06:45 +02:00
parent 6527dc0ae0
commit 1839486ff1
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class Media(Base):
if "created_utc" not in kwargs:
kwargs["created_utc"] = int(time.time())
if has_request_context():
kwargs["referrer"] = request.referrer
kwargs["referrer"] = request.referrer.split('?m=')[0]
super().__init__(*args, **kwargs)
def __repr__(self):