diff --git a/files/classes/media.py b/files/classes/media.py index 4304f8274..c1a6d13ba 100644 --- a/files/classes/media.py +++ b/files/classes/media.py @@ -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):