add a generic summary if none is provided

merge-requests/6/head
Bob Mottram 2020-02-18 17:09:07 +00:00
parent a49e27643e
commit 3a57a76703
16 changed files with 34 additions and 16 deletions

View File

@ -207,5 +207,6 @@
"PGP": "PGP",
"This is a scheduled post.": "هذا هو المقرر المقرر.",
"Remove scheduled posts": "إزالة المشاركات المجدولة",
"Remove Twitter posts": "إزالة مشاركات Twitter"
"Remove Twitter posts": "إزالة مشاركات Twitter",
"Sensitive": "حساس"
}

View File

@ -207,5 +207,6 @@
"PGP": "PGP",
"This is a scheduled post.": "Aquesta és una publicació programada.",
"Remove scheduled posts": "Elimineu les publicacions programades",
"Remove Twitter posts": "Elimina les publicacions de Twitter"
"Remove Twitter posts": "Elimina les publicacions de Twitter",
"Sensitive": "Sensible"
}

View File

@ -207,5 +207,6 @@
"PGP": "PGP",
"This is a scheduled post.": "Mae hon yn swydd wedi'i hamserlennu.",
"Remove scheduled posts": "Tynnwch y swyddi a drefnwyd",
"Remove Twitter posts": "Dileu postiadau Twitter"
"Remove Twitter posts": "Dileu postiadau Twitter",
"Sensitive": "Sensitif"
}

View File

@ -207,5 +207,6 @@
"PGP": "PGP",
"This is a scheduled post.": "Dies ist ein geplanter Beitrag.",
"Remove scheduled posts": "Geplante Posts entfernen",
"Remove Twitter posts": "Entfernen Sie Twitter-Posts"
"Remove Twitter posts": "Entfernen Sie Twitter-Posts",
"Sensitive": "Empfindlich"
}

View File

@ -207,5 +207,6 @@
"PGP": "PGP",
"This is a scheduled post.": "This is a scheduled post.",
"Remove scheduled posts": "Remove scheduled posts",
"Remove Twitter posts": "Remove Twitter posts"
"Remove Twitter posts": "Remove Twitter posts",
"Sensitive": "Sensitive"
}

View File

@ -207,5 +207,6 @@
"PGP": "PGP",
"This is a scheduled post.": "Esta es una publicación programada.",
"Remove scheduled posts": "Eliminar publicaciones programadas",
"Remove Twitter posts": "Eliminar publicaciones de Twitter"
"Remove Twitter posts": "Eliminar publicaciones de Twitter",
"Sensitive": "Sensible"
}

View File

@ -207,5 +207,6 @@
"PGP": "PGP",
"This is a scheduled post.": "Il s'agit d'un article programmé.",
"Remove scheduled posts": "Supprimer les messages planifiés",
"Remove Twitter posts": "Supprimer les messages Twitter"
"Remove Twitter posts": "Supprimer les messages Twitter",
"Sensitive": "Sensible"
}

View File

@ -207,5 +207,6 @@
"PGP": "PGP",
"This is a scheduled post.": "Is post sceidealta é seo.",
"Remove scheduled posts": "Bain na poist sceidealta",
"Remove Twitter posts": "Bain poist Twitter"
"Remove Twitter posts": "Bain poist Twitter",
"Sensitive": "Íogair"
}

View File

@ -207,5 +207,6 @@
"PGP": "PGP",
"This is a scheduled post.": "यह एक अनुसूचित पद है।",
"Remove scheduled posts": "अनुसूचित पदों को हटा दें",
"Remove Twitter posts": "ट्विटर पोस्ट हटाएं"
"Remove Twitter posts": "ट्विटर पोस्ट हटाएं",
"Sensitive": "संवेदनशील"
}

View File

@ -207,5 +207,6 @@
"PGP": "PGP",
"This is a scheduled post.": "Questo è un post programmato",
"Remove scheduled posts": "Rimuovi i post programmati",
"Remove Twitter posts": "Rimuovi i post di Twitter"
"Remove Twitter posts": "Rimuovi i post di Twitter",
"Sensitive": "Sensibile"
}

View File

@ -207,5 +207,6 @@
"PGP": "PGP",
"This is a scheduled post.": "これはスケジュールされた投稿です。",
"Remove scheduled posts": "スケジュールされた投稿を削除する",
"Remove Twitter posts": "Twitterの投稿を削除する"
"Remove Twitter posts": "Twitterの投稿を削除する",
"Sensitive": "敏感"
}

View File

@ -203,5 +203,6 @@
"PGP": "PGP",
"This is a scheduled post.": "This is a scheduled post.",
"Remove scheduled posts": "Remove scheduled posts",
"Remove Twitter posts": "Remove Twitter posts"
"Remove Twitter posts": "Remove Twitter posts",
"Sensitive": "Sensitive"
}

View File

@ -207,5 +207,6 @@
"PGP": "PGP",
"This is a scheduled post.": "Esta é uma postagem agendada.",
"Remove scheduled posts": "Remover postagens agendadas",
"Remove Twitter posts": "Remover postagens do Twitter"
"Remove Twitter posts": "Remover postagens do Twitter",
"Sensitive": "Sensível"
}

View File

@ -207,5 +207,6 @@
"PGP": "PGP",
"This is a scheduled post.": "Это запланированный пост.",
"Remove scheduled posts": "Удалить запланированные сообщения",
"Remove Twitter posts": "Удалить сообщения из Твиттера"
"Remove Twitter posts": "Удалить сообщения из Твиттера",
"Sensitive": "чувствительный"
}

View File

@ -207,5 +207,6 @@
"PGP": "PGP",
"This is a scheduled post.": "这是预定的帖子。",
"Remove scheduled posts": "删除预定的帖子",
"Remove Twitter posts": "删除Twitter帖子"
"Remove Twitter posts": "删除Twitter帖子",
"Sensitive": "敏感"
}

View File

@ -2654,6 +2654,9 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
# sensitive posts should have a summary
if postJsonObject['object'].get('summary'):
postIsSensitive=postJsonObject['object']['sensitive']
else:
# add a generic summary if none is provided
postJsonObject['object']['summary']=translate['Sensitive']
# add an extra line if there is a content warning, for better vertical spacing on mobile
if postIsSensitive: