bookwyrm/bookwyrm
Hugh Rundle 8d593e4498 hide replies to posts user cannot see
This is in response to #1870

Users should not see links to posts they are not allowed to see, in their feed. The main question is how to stop that happening.
This commit hides all replies to posts if the original post was "followers only" and the user is not a follower of the original poster. The privacy of the reply is not considered relevant (except "direct").

I believe this is the cleanest way to deal with the problem, as it avoids orphaned replies and confusing 404s, and a reply without access to the context of the original post is not particularly useful to anyone. This also feels like it respects the wishes of the original poster more accurately, as it does not draw attention from non-followers to the original followers-only post.

A less draconian approach might be to remove the link to the original status in the feed interface, however that simply leads to confusion of another kind since it will make the interface inconsistent.

This commit does not change any ActivityPub behaviour - it only affects the Bookwyrm user feeds. This means orphaned posts may be sent to external apps like Mastodon.
2022-08-14 14:17:10 +10:00
..
activitypub Merge pull request #2133 from bookwyrm-social/activitypub-connection-erorr 2022-05-26 10:12:18 -07:00
connectors Log failing to connect as info instead of exception 2022-07-11 08:47:18 -07:00
forms Updates reset password flow to use validators 2022-07-15 11:39:18 -07:00
importers Pylint fixes 2022-07-02 12:07:22 -07:00
management/commands Use values_list with flat, yay! 2022-06-07 23:15:34 -07:00
middleware Adds IP blocklist views 2021-09-17 13:04:10 -07:00
migrations Adds locale migration 2022-08-02 11:09:58 -07:00
models Merge pull request #2246 from bookwyrm-social/goal-model 2022-07-29 13:22:12 -07:00
static Merge branch 'main' into tour 2022-07-17 16:30:45 +10:00
telemetry Copy config from prod branch to main 2022-02-04 18:36:12 -08:00
templates Removes duplicate version warning 2022-08-05 17:03:56 -07:00
templatetags Safer display of book descriptions 2022-08-07 13:26:05 -07:00
tests Merge pull request #2254 from bookwyrm-social/fixes-search-pagination 2022-08-05 12:32:47 -07:00
utils Use "strip" in bleach 2022-07-04 13:55:58 -07:00
views Merge pull request #2254 from bookwyrm-social/fixes-search-pagination 2022-08-05 12:32:47 -07:00
__init__.py rename main code directory 2020-09-17 13:30:54 -07:00
activitystreams.py hide replies to posts user cannot see 2022-08-14 14:17:10 +10:00
admin.py Adds model for instance admin announcements 2021-05-19 14:00:46 -07:00
apps.py Log info, not exception, for expected errors 2022-03-11 14:55:54 -08:00
book_search.py Re-implements return first option 2022-05-31 08:20:59 -07:00
context_processors.py Python formatting 2022-03-01 11:39:08 -08:00
emailing.py Allow reports with no associated user 2022-07-05 17:19:03 -07:00
imagegenerators.py Fix lint 2021-06-19 19:44:14 +02:00
lists_stream.py Use update_fields to limit remove_list_tasks 2022-07-02 13:23:23 -07:00
preview_images.py Fix linting and formatting 2022-01-25 01:09:27 -08:00
redis_store.py use REDIS_x_DB_INDEX instead of REDIS_x_DB, add optional setting to example env file 2022-01-13 09:16:16 -07:00
settings.py Update version 2022-08-05 16:54:55 -07:00
signatures.py Updating string format syntax part 1 2021-09-17 21:39:18 -07:00
status.py Catches missing reference to previous sanitizer 2022-07-04 13:24:13 -07:00
storage_backends.py Fix R1725: Consider using Python 3 style super() without arguments 2021-08-04 11:58:53 +02:00
suggested_users.py Merge branch 'main' into list-not-loading 2022-01-07 10:32:17 -08:00
tasks.py Adds enum for queue names 2021-11-11 19:10:22 -08:00
thumbnail_generation.py Update thumbnail_generation.py 2022-01-08 17:54:03 +01:00
urls.py Merge branch 'main' into followers-following-views 2022-07-29 13:09:30 -07:00
wsgi.py Updates migrations 2020-09-21 08:10:37 -07:00