mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-25 01:34:51 +01:00
fix missing field on rss
This commit is contained in:
parent
d2bf457def
commit
10d5d8f615
@ -72,7 +72,7 @@ class IndexRSSFeed(Feed):
|
|||||||
return item.title
|
return item.title
|
||||||
|
|
||||||
def item_description(self, item):
|
def item_description(self, item):
|
||||||
return item.summary
|
return item.description
|
||||||
|
|
||||||
def item_author_name(self, item):
|
def item_author_name(self, item):
|
||||||
return item.user.username
|
return item.user.username
|
||||||
@ -89,7 +89,7 @@ class IndexRSSFeed(Feed):
|
|||||||
def item_extra_kwargs(self, item):
|
def item_extra_kwargs(self, item):
|
||||||
item = {
|
item = {
|
||||||
"media:title": item.title,
|
"media:title": item.title,
|
||||||
"media:description": item.summary,
|
"media:description": item.description,
|
||||||
"content_width": 720,
|
"content_width": 720,
|
||||||
"thumbnail_url": f"{settings.SSL_FRONTEND_HOST}/{item.poster_url}",
|
"thumbnail_url": f"{settings.SSL_FRONTEND_HOST}/{item.poster_url}",
|
||||||
"content_url": f"{settings.SSL_FRONTEND_HOST}/{item.get_absolute_url()}",
|
"content_url": f"{settings.SSL_FRONTEND_HOST}/{item.get_absolute_url()}",
|
||||||
@ -144,7 +144,7 @@ class SearchRSSFeed(Feed):
|
|||||||
return item.title
|
return item.title
|
||||||
|
|
||||||
def item_description(self, item):
|
def item_description(self, item):
|
||||||
return item.summary
|
return item.description
|
||||||
|
|
||||||
def item_author_name(self, item):
|
def item_author_name(self, item):
|
||||||
return item.user.username
|
return item.user.username
|
||||||
@ -161,7 +161,7 @@ class SearchRSSFeed(Feed):
|
|||||||
def item_extra_kwargs(self, item):
|
def item_extra_kwargs(self, item):
|
||||||
item = {
|
item = {
|
||||||
"media:title": item.title,
|
"media:title": item.title,
|
||||||
"media:description": item.summary,
|
"media:description": item.description,
|
||||||
"content_width": 720,
|
"content_width": 720,
|
||||||
"thumbnail_url": f"{settings.SSL_FRONTEND_HOST}/{item.poster_url}",
|
"thumbnail_url": f"{settings.SSL_FRONTEND_HOST}/{item.poster_url}",
|
||||||
"content_url": f"{settings.SSL_FRONTEND_HOST}/{item.get_absolute_url()}",
|
"content_url": f"{settings.SSL_FRONTEND_HOST}/{item.get_absolute_url()}",
|
||||||
|
Loading…
Reference in New Issue
Block a user