Fix tests
This commit is contained in:
parent
a3bd932a2d
commit
7b20f6d3b7
1 changed files with 6 additions and 5 deletions
|
@ -45,9 +45,10 @@ def plausible(request):
|
||||||
|
|
||||||
|
|
||||||
def open_graph_image_url(request):
|
def open_graph_image_url(request):
|
||||||
|
if request.path in IGNORED_PATHS:
|
||||||
|
return {}
|
||||||
open_graph_image = Attachment.objects.get_open_graph_image()
|
open_graph_image = Attachment.objects.get_open_graph_image()
|
||||||
return {
|
url = ""
|
||||||
"open_graph_image_url": open_graph_image.processed_file.get_full_absolute_url(
|
if open_graph_image:
|
||||||
request
|
url = open_graph_image.processed_file.get_full_absolute_url(request)
|
||||||
)
|
return {"open_graph_image_url": url}
|
||||||
}
|
|
||||||
|
|
Reference in a new issue