forked from indymedia/epicyon
No news flag
parent
522d1459f8
commit
22bf539b4a
|
@ -81,7 +81,7 @@ body, html {
|
|||
a, u {
|
||||
color: var(--main-fg-color);
|
||||
}
|
||||
|
||||
|
||||
a:visited{
|
||||
color: var(--main-visited-color);
|
||||
background: var(--link-bg-color);
|
||||
|
|
7
posts.py
7
posts.py
|
@ -580,13 +580,6 @@ def savePostToBox(baseDir: str, httpPrefix: str, postId: str,
|
|||
postJsonObject['object']['id'] = postId
|
||||
postJsonObject['object']['atomUri'] = postId
|
||||
|
||||
# for blog posts set the news flag
|
||||
if postId and postJsonObject['object'].get('type'):
|
||||
if boxname == 'tlblogs' and \
|
||||
postJsonObject['object']['type'] == 'Article':
|
||||
if '://' + originalDomain + '/' in postId:
|
||||
postJsonObject['news'] = True
|
||||
|
||||
boxDir = createPersonDir(nickname, domain, baseDir, boxname)
|
||||
filename = boxDir + '/' + postId.replace('/', '#') + '.json'
|
||||
|
||||
|
|
Loading…
Reference in New Issue