Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat committed Oct 26, 2024
1 parent b5fa7be commit eb44b55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/InvenTree/common/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def update_news_feed():
continue

# Enforce proper links for the entries
if entry.link.startswith('/'):
entry.link = settings.INVENTREE_BASE_URL + entry
if entry.link and str(entry.link).startswith('/'):
entry.link = settings.INVENTREE_BASE_URL + str(entry.link)

# Create entry
try:
Expand Down

0 comments on commit eb44b55

Please sign in to comment.