From dd532e4425e5049f57c14f013214aebe35c47371 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Thu, 7 Sep 2023 22:06:50 -0600 Subject: [PATCH] Fix tests for profile redirect and add to notes --- docs/releases/0.10.rst | 3 +++ tests/activities/models/test_post.py | 4 ++-- tests/core/test_html.py | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/releases/0.10.rst b/docs/releases/0.10.rst index 36ce334..8ce4377 100644 --- a/docs/releases/0.10.rst +++ b/docs/releases/0.10.rst @@ -20,6 +20,9 @@ Minor changes also include: * Followers-only mode now works correctly inbound and outbound (though outbound may need the other server to refresh the profile first). +* Profile pages are no longer shown for remote identities; instead, users are + linked or redirected directly to the remote profile page. + If you'd like to help with code, design, or other areas, see :doc:`/contributing` to see how to get in touch. diff --git a/tests/activities/models/test_post.py b/tests/activities/models/test_post.py index 96125da..825a3bb 100644 --- a/tests/activities/models/test_post.py +++ b/tests/activities/models/test_post.py @@ -180,7 +180,7 @@ def test_linkify_mentions_local(config_system, identity, identity2, remote_ident post.mentions.add(remote_identity) assert ( post.safe_content_local() - == '

Hello @test

' + == '

Hello @test

' ) # Test a full username (local) post = Post.objects.create( @@ -204,7 +204,7 @@ def test_linkify_mentions_local(config_system, identity, identity2, remote_ident post.mentions.add(remote_identity) assert ( post.safe_content_local() - == '@test hello!' + == '@test hello!' ) # Test that they don't get touched without a mention post = Post.objects.create( diff --git a/tests/core/test_html.py b/tests/core/test_html.py index 09f8032..d2ce52f 100644 --- a/tests/core/test_html.py +++ b/tests/core/test_html.py @@ -138,6 +138,6 @@ def test_parser_same_name_mentions(remote_identity, remote_identity2): ) assert ( parser.html - == '@test @test' + == '@test @test' ) assert parser.plain_text == "@test @test"