From 56f5f0da4c9c024728bd27d11daee25e0f7d2cb4 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Sun, 11 Feb 2024 20:29:58 +1300 Subject: [PATCH] remove incorrectly ussed summary --- app/activitypub/routes.py | 1 - app/activitypub/util.py | 2 +- app/static/site.webmanifest | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/activitypub/routes.py b/app/activitypub/routes.py index 40746ebc..91d4af0e 100644 --- a/app/activitypub/routes.py +++ b/app/activitypub/routes.py @@ -950,7 +950,6 @@ def comment_ap(comment_id): reply.author.followers_url() ], 'content': reply.body_html, - 'summary': markdown_to_text(reply.body), 'mediaType': 'text/html', 'published': ap_datetime(reply.created_at), 'distinguished': False, diff --git a/app/activitypub/util.py b/app/activitypub/util.py index 74cb20b6..66daad04 100644 --- a/app/activitypub/util.py +++ b/app/activitypub/util.py @@ -124,7 +124,6 @@ def post_to_activity(post: Post, community: Community): "name": post.title, "cc": [], "content": post.body_html, - "summary": markdown_to_text(post.body), "mediaType": "text/html", "source": { "content": post.body, @@ -134,6 +133,7 @@ def post_to_activity(post: Post, community: Community): "commentsEnabled": post.comments_enabled, "sensitive": post.nsfw or post.nsfl, "published": ap_datetime(post.created_at), + "stickied": post.sticky, "audience": f"https://{current_app.config['SERVER_NAME']}/c/{community.name}" }, "cc": [ diff --git a/app/static/site.webmanifest b/app/static/site.webmanifest index a8538cf1..aaa029d9 100644 --- a/app/static/site.webmanifest +++ b/app/static/site.webmanifest @@ -15,7 +15,7 @@ ], "theme_color": "#007BBF", "background_color": "#ffffff", - "display": "minimal-ui", + "display": "browser", "start_url": "/", "scope": "/" }