mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Add "Share article" feature
A new "shareCode" field is generated for each entry, and allows unlogged users to access the entry through the /shared endpoint. This feature is particularly useful to share articles from miniflux to third-party users without having them to visit the original source. The image proxy is disabled and special cache headers are proposed in the shared page to avoid denial of service.
This commit is contained in:
parent
1b86913c00
commit
41a2b7e58e
24 changed files with 243 additions and 26 deletions
|
@ -76,6 +76,8 @@ var translations = map[string]string{
|
|||
"entry.original.label": "Original-Artikel",
|
||||
"entry.comments.label": "Kommentare",
|
||||
"entry.comments.title": "Kommentare anzeigen",
|
||||
"entry.share.label": "Teilen",
|
||||
"entry.share.title": "Diesen Artikel teilen",
|
||||
"page.unread.title": "Ungelesen",
|
||||
"page.starred.title": "Lesezeichen",
|
||||
"page.categories.title": "Kategorien",
|
||||
|
@ -402,6 +404,8 @@ var translations = map[string]string{
|
|||
"entry.original.label": "Original",
|
||||
"entry.comments.label": "Comments",
|
||||
"entry.comments.title": "View Comments",
|
||||
"entry.share.label": "Share",
|
||||
"entry.share.title": "Share this article",
|
||||
"page.unread.title": "Unread",
|
||||
"page.starred.title": "Starred",
|
||||
"page.categories.title": "Categories",
|
||||
|
@ -708,6 +712,8 @@ var translations = map[string]string{
|
|||
"entry.original.label": "Original",
|
||||
"entry.comments.label": "Comentarios",
|
||||
"entry.comments.title": "Ver comentarios",
|
||||
"entry.share.label": "Comparta",
|
||||
"entry.share.title": "Comparta este articulo",
|
||||
"page.unread.title": "No leídos",
|
||||
"page.starred.title": "Marcadores",
|
||||
"page.categories.title": "Categorias",
|
||||
|
@ -1014,6 +1020,8 @@ var translations = map[string]string{
|
|||
"entry.original.label": "Original",
|
||||
"entry.comments.label": "Commentaires",
|
||||
"entry.comments.title": "Voir les commentaires",
|
||||
"entry.share.label": "Partager",
|
||||
"entry.share.title": "Partager cet article",
|
||||
"page.unread.title": "Non lus",
|
||||
"page.starred.title": "Favoris",
|
||||
"page.categories.title": "Catégories",
|
||||
|
@ -1340,6 +1348,8 @@ var translations = map[string]string{
|
|||
"entry.original.label": "Contenuto originale",
|
||||
"entry.comments.label": "Commenti",
|
||||
"entry.comments.title": "Mostra i commenti",
|
||||
"entry.share.label": "Condividi",
|
||||
"entry.share.title": "Condividi questo articolo",
|
||||
"page.unread.title": "Da leggere",
|
||||
"page.starred.title": "Preferiti",
|
||||
"page.categories.title": "Categorie",
|
||||
|
@ -1646,6 +1656,8 @@ var translations = map[string]string{
|
|||
"entry.original.label": "オリジナル",
|
||||
"entry.comments.label": "コメント",
|
||||
"entry.comments.title": "コメントを見る",
|
||||
"entry.share.label": "共有",
|
||||
"entry.share.title": "この記事を共有する",
|
||||
"page.unread.title": "未読",
|
||||
"page.starred.title": "星付き",
|
||||
"page.categories.title": "カテゴリ",
|
||||
|
@ -1952,6 +1964,8 @@ var translations = map[string]string{
|
|||
"entry.original.label": "Origineel",
|
||||
"entry.comments.label": "Comments",
|
||||
"entry.comments.title": "Bekijk de reacties",
|
||||
"entry.share.label": "Deel",
|
||||
"entry.share.title": "Deel dit artikel",
|
||||
"page.unread.title": "Ongelezen",
|
||||
"page.starred.title": "Favorieten",
|
||||
"page.categories.title": "Categorieën",
|
||||
|
@ -2276,6 +2290,8 @@ var translations = map[string]string{
|
|||
"entry.original.label": "Oryginalny artykuł",
|
||||
"entry.comments.label": "Komentarze",
|
||||
"entry.comments.title": "Zobacz komentarze",
|
||||
"entry.share.label": "Podzielić się",
|
||||
"entry.share.title": "Podzielić się ten artykuł",
|
||||
"page.unread.title": "Nieprzeczytane",
|
||||
"page.starred.title": "Oznaczone gwiazdką",
|
||||
"page.categories.title": "Kategorie",
|
||||
|
@ -2608,6 +2624,8 @@ var translations = map[string]string{
|
|||
"entry.original.label": "Оригинал",
|
||||
"entry.comments.label": "Комментарии",
|
||||
"entry.comments.title": "Показать комментарии",
|
||||
"entry.share.label": "поделиться",
|
||||
"entry.share.title": "поделиться эту статью",
|
||||
"page.unread.title": "Непрочитанное",
|
||||
"page.starred.title": "Избранное",
|
||||
"page.categories.title": "Категории",
|
||||
|
@ -2922,6 +2940,8 @@ var translations = map[string]string{
|
|||
"entry.original.label": "原始内容",
|
||||
"entry.comments.label": "评论",
|
||||
"entry.comments.title": "查看评论",
|
||||
"entry.share.label": "分享",
|
||||
"entry.share.title": "分享这篇文章",
|
||||
"page.unread.title": "未读",
|
||||
"page.starred.title": "星标",
|
||||
"page.categories.title": "分类",
|
||||
|
@ -3169,14 +3189,14 @@ var translations = map[string]string{
|
|||
}
|
||||
|
||||
var translationsChecksums = map[string]string{
|
||||
"de_DE": "cc826a57cf4bf789df38db4f50626ad8c1c2b84ce34075c2c04de3d1f0dcd2d5",
|
||||
"en_US": "f7e6db53cdbc2c0d959ac231dbacf0ef4d0ed81248944c4a4f8b83ef000f5349",
|
||||
"es_ES": "cc727f62eef3a6cba51b65253d70a50161af35bf9c5366281b7984b2fc189961",
|
||||
"fr_FR": "d3d1a4bf9aa8e4e24bae2f117507dcfc3cf00660a73b44a6c42356e8dbab8ae8",
|
||||
"it_IT": "5ded991f2c70ec2268e6053bd84a77cf4136ebaea42013d3e79d594f38abb1b3",
|
||||
"ja_JP": "110d7a7b1c888282b031de340e3318a62cdd62076b05a7fb49759f554c6dbe76",
|
||||
"nl_NL": "a934ab4b1eff85580425a5859c31fcb227ae8926deba74df4e42b5d4feb67826",
|
||||
"pl_PL": "6e80c36788723b9a7ff3f372e13a55c68d153727ec0abb56663cadbf6d6e1d9f",
|
||||
"ru_RU": "d56f9e31f63731d23ce1ea2a8a4cb019f3ab282b23a1f494c47061daea523587",
|
||||
"zh_CN": "4a5ca40790fceab88257f6742dc05294b79142bee8aad6fc87fbd479d1941292",
|
||||
"de_DE": "7360a69e038d71e00f64c03891401cd517779687d46a907688f4a9a7b6205146",
|
||||
"en_US": "92dda79899a673652a43fd8d61c893749713af09909ca03ac6fea06ac617d361",
|
||||
"es_ES": "813b8cd42907dfbc19ff51f3367e0dbb013d373b013d7854df512e846652ff21",
|
||||
"fr_FR": "279c52bbf682949cf8782e7e81f2bf5cfd300cebf577d51ce9436d44aaaf6323",
|
||||
"it_IT": "5e8408e9aee142e1bd7e73f2a91ae96bc9ad0ab61c20416ad9e93b6fe505e8a9",
|
||||
"ja_JP": "508025c0c7e7f57195ae011c4499ab58a85d043c828565c1740df879fb2376c1",
|
||||
"nl_NL": "e621a5e7408928624a060a832d9fc36b74026221bd7b07894a4cce267be3cdd1",
|
||||
"pl_PL": "2383c1a9be451557fe601f346e30bb165a88d9c00d17909a9c747d64864a423d",
|
||||
"ru_RU": "d7ad59bbd7a150af9d476c4c3034eb85762de7381e2925d75e373584ed45c725",
|
||||
"zh_CN": "e5f169a3c83c9bd7a41e9737e001e58fec243eee7aa23a71d37bfa8e05d92860",
|
||||
}
|
||||
|
|
|
@ -71,6 +71,8 @@
|
|||
"entry.original.label": "Original-Artikel",
|
||||
"entry.comments.label": "Kommentare",
|
||||
"entry.comments.title": "Kommentare anzeigen",
|
||||
"entry.share.label": "Teilen",
|
||||
"entry.share.title": "Diesen Artikel teilen",
|
||||
"page.unread.title": "Ungelesen",
|
||||
"page.starred.title": "Lesezeichen",
|
||||
"page.categories.title": "Kategorien",
|
||||
|
|
|
@ -71,6 +71,8 @@
|
|||
"entry.original.label": "Original",
|
||||
"entry.comments.label": "Comments",
|
||||
"entry.comments.title": "View Comments",
|
||||
"entry.share.label": "Share",
|
||||
"entry.share.title": "Share this article",
|
||||
"page.unread.title": "Unread",
|
||||
"page.starred.title": "Starred",
|
||||
"page.categories.title": "Categories",
|
||||
|
|
|
@ -71,6 +71,8 @@
|
|||
"entry.original.label": "Original",
|
||||
"entry.comments.label": "Comentarios",
|
||||
"entry.comments.title": "Ver comentarios",
|
||||
"entry.share.label": "Comparta",
|
||||
"entry.share.title": "Comparta este articulo",
|
||||
"page.unread.title": "No leídos",
|
||||
"page.starred.title": "Marcadores",
|
||||
"page.categories.title": "Categorias",
|
||||
|
|
|
@ -71,6 +71,8 @@
|
|||
"entry.original.label": "Original",
|
||||
"entry.comments.label": "Commentaires",
|
||||
"entry.comments.title": "Voir les commentaires",
|
||||
"entry.share.label": "Partager",
|
||||
"entry.share.title": "Partager cet article",
|
||||
"page.unread.title": "Non lus",
|
||||
"page.starred.title": "Favoris",
|
||||
"page.categories.title": "Catégories",
|
||||
|
|
|
@ -71,6 +71,8 @@
|
|||
"entry.original.label": "Contenuto originale",
|
||||
"entry.comments.label": "Commenti",
|
||||
"entry.comments.title": "Mostra i commenti",
|
||||
"entry.share.label": "Condividi",
|
||||
"entry.share.title": "Condividi questo articolo",
|
||||
"page.unread.title": "Da leggere",
|
||||
"page.starred.title": "Preferiti",
|
||||
"page.categories.title": "Categorie",
|
||||
|
|
|
@ -71,6 +71,8 @@
|
|||
"entry.original.label": "オリジナル",
|
||||
"entry.comments.label": "コメント",
|
||||
"entry.comments.title": "コメントを見る",
|
||||
"entry.share.label": "共有",
|
||||
"entry.share.title": "この記事を共有する",
|
||||
"page.unread.title": "未読",
|
||||
"page.starred.title": "星付き",
|
||||
"page.categories.title": "カテゴリ",
|
||||
|
|
|
@ -71,6 +71,8 @@
|
|||
"entry.original.label": "Origineel",
|
||||
"entry.comments.label": "Comments",
|
||||
"entry.comments.title": "Bekijk de reacties",
|
||||
"entry.share.label": "Deel",
|
||||
"entry.share.title": "Deel dit artikel",
|
||||
"page.unread.title": "Ongelezen",
|
||||
"page.starred.title": "Favorieten",
|
||||
"page.categories.title": "Categorieën",
|
||||
|
|
|
@ -71,6 +71,8 @@
|
|||
"entry.original.label": "Oryginalny artykuł",
|
||||
"entry.comments.label": "Komentarze",
|
||||
"entry.comments.title": "Zobacz komentarze",
|
||||
"entry.share.label": "Podzielić się",
|
||||
"entry.share.title": "Podzielić się ten artykuł",
|
||||
"page.unread.title": "Nieprzeczytane",
|
||||
"page.starred.title": "Oznaczone gwiazdką",
|
||||
"page.categories.title": "Kategorie",
|
||||
|
|
|
@ -71,6 +71,8 @@
|
|||
"entry.original.label": "Оригинал",
|
||||
"entry.comments.label": "Комментарии",
|
||||
"entry.comments.title": "Показать комментарии",
|
||||
"entry.share.label": "поделиться",
|
||||
"entry.share.title": "поделиться эту статью",
|
||||
"page.unread.title": "Непрочитанное",
|
||||
"page.starred.title": "Избранное",
|
||||
"page.categories.title": "Категории",
|
||||
|
|
|
@ -71,6 +71,8 @@
|
|||
"entry.original.label": "原始内容",
|
||||
"entry.comments.label": "评论",
|
||||
"entry.comments.title": "查看评论",
|
||||
"entry.share.label": "分享",
|
||||
"entry.share.title": "分享这篇文章",
|
||||
"page.unread.title": "未读",
|
||||
"page.starred.title": "星标",
|
||||
"page.categories.title": "分类",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue