From bb230518ff8a20e8ad90611dfcded134ecae3f97 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Feb 28 2017 09:13:38 +0000 Subject: Only link the diff to the file if the PR is local and not remote --- diff --git a/pagure/ui/filters.py b/pagure/ui/filters.py index 30fa47c..aeac989 100644 --- a/pagure/ui/filters.py +++ b/pagure/ui/filters.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """ - (c) 2014-2016 - Copyright Red Hat Inc + (c) 2014-2017 - Copyright Red Hat Inc Authors: Pierre-Yves Chibon @@ -140,7 +140,7 @@ def format_loc(loc, commit=None, filename=None, tree_id=None, prequest=None, continue if line.startswith('')[1] - if prequest: + if prequest and prequest.project_from: rangeline = line.partition('font-weight: bold">@@ ')[2] \ if line.partition('font-weight: bold">@@ ')[1] == \ 'font-weight: bold">@@ ' else None