diff --git a/Locale/en.json b/Locale/en.json
index e1bd395..a88f14e 100644
--- a/Locale/en.json
+++ b/Locale/en.json
@@ -2,5 +2,7 @@
"CreatedOn": "Created on",
"EditedOn": "Edited on",
"Categories": "Categories",
- "ReadFullPost": "Read the full post"
+ "ReadFullPost": "Read the full post",
+ "Comments": "Comments",
+ "OpenInNewTab": "Open in a new tab"
}
diff --git a/Locale/it.json b/Locale/it.json
index 5225153..6f71dd7 100644
--- a/Locale/it.json
+++ b/Locale/it.json
@@ -2,5 +2,7 @@
"CreatedOn": "Creato in data",
"EditedOn": "Modificato in data",
"Categories": "Categorie",
- "ReadFullPost": "Leggi il post intero"
+ "ReadFullPost": "Leggi il post intero",
+ "Comments": "Commenti",
+ "OpenInNewTab": "Apri in una nuova scheda"
}
diff --git a/README.md b/README.md
index 6efe8f5..9d00f09 100644
--- a/README.md
+++ b/README.md
@@ -21,7 +21,7 @@ Feel free to experiment with all of this stuff!
- [html2gmi](https://github.com/LukeEmmet/html2gmi)
## Features roadmap
-- [ ] ActivityPub support (Feed + embedded comments)
+- [x] ActivityPub (Mastodon) support (Feed + embedded comments)
- [ ] Polished Gemtext generation
- [x] Autodetection of pages and posts
- [x] Info for posts shown on their page
diff --git a/Source/Build.py b/Source/Build.py
index 4601cef..481fb85 100755
--- a/Source/Build.py
+++ b/Source/Build.py
@@ -483,17 +483,37 @@ def Main(Args, FeedEntries):
Lang=SiteLang,
Minify=True if Args.Minify and Args.Minify not in ('False', 'None') else False)
- if Args.GemtextOut:
- GemtextCompileList(Pages)
-
if MastodonURL and MastodonToken and SiteDomain:
- MastodonShare(
+ MastodonPosts = MastodonShare(
MastodonURL,
MastodonToken,
Pages,
SiteDomain,
SiteLang,
Locale)
+ #print(MastodonPosts)
+ else:
+ MastodonPosts = []
+
+ for File, Content, Titles, Meta, HTMLContent, Description, Image in Pages:
+ #if Meta['Type'] == 'Post':
+ File = 'public/{}.html'.format(StripExt(File))
+ Content = ReadFile(File)
+ Post = ''
+ for p in MastodonPosts:
+ #print(SiteDomain + File[len('public/'):])
+ if p['Link'] == SiteDomain + '/' + File[len('public/'):]:
+ Post = '