-
-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to forbid viewing other's modification history. #208
base: master
Are you sure you want to change the base?
Option to forbid viewing other's modification history. #208
Conversation
Comment author can view their own comment modification history. Moderators can view anyone's history.
How so? What about quotes? What about screenshots? What about wayback machine? What about Google's cache? What about... |
Well GitHub comment does so :) |
History can only be seen by registered users. |
Github comments are not exactly the best thing ever (to put it nicely).
No reason to hide the history then? |
Many reasons a human to hide their history. Human lies and always lies. They need something to cover their trails. Discuz hides them, I'm familiar with that, people would feel more free. So why not leave it an option, let the forum owner do the choice. |
spirit/core/conf/defaults.py
Outdated
@@ -100,3 +100,5 @@ | |||
os.path.dirname( | |||
os.path.dirname( | |||
os.path.dirname(__file__)))) | |||
|
|||
ST_CUSTOMIZE_ALLOW_OTHERS_VIEWING_MODIFICATION_HISTORY = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be called ST_PRIVATE_COMMENT_HISTORY
spirit/comment/history/views.py
Outdated
@@ -17,6 +19,12 @@ def detail(request, comment_id): | |||
comment = get_object_or_404(Comment.objects.for_access(request.user), | |||
pk=comment_id) | |||
|
|||
# not comment author and not moderator: | |||
if request.user != comment.user and not request.user.st.is_moderator: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... and ST_PRIVATE_COMMENT_HISTORY
is missing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree.
haha What kind of forum are you running? 👅 Anyway, I'll think about it. But please add tests.
I dunno. Other users can still quote, so I don't think they will feel more free than usual. |
I own none but I register one. It has 700k registered users, and 10k new comments daily. The fun point is reply with "pay me or your wife may see it some day" after quoting :) |
For privacy concern.
Comment author can view their own comment modification history, but not other user's.
Moderators can view anyone's history.
Switch:
ST_CUSTOMIZE_ALLOW_OTHERS_VIEWING_MODIFICATION_HISTORY