No news flag

main
Bob Mottram 2020-11-28 18:13:33 +00:00
parent 522d1459f8
commit 22bf539b4a
2 changed files with 1 additions and 8 deletions

View File

@ -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);

View File

@ -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'