aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorBobby <[email protected]>2023-01-23 03:22:50 -0500
committerBobby <[email protected]>2023-01-23 03:22:50 -0500
commitcdb3c96cdf2e4dda308d4de43e7cdec73cb1be7c (patch)
treee5f458f67ea8210b8dbd78fe86eb73cffd2a9d06 /templates
parentcf8ff752df348c1b67843360bdad87b223668f22 (diff)
downloadthatcomputerscientist-cdb3c96cdf2e4dda308d4de43e7cdec73cb1be7c.tar.xz
thatcomputerscientist-cdb3c96cdf2e4dda308d4de43e7cdec73cb1be7c.zip
allow access to user to their activity on private profile
Diffstat (limited to 'templates')
-rw-r--r--templates/blog/activity.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/templates/blog/activity.html b/templates/blog/activity.html
index 595dd920..6d70af3b 100644
--- a/templates/blog/activity.html
+++ b/templates/blog/activity.html
@@ -28,10 +28,14 @@
</div>
<div style="clear: both;" id="activity">
- {% if activity_user_profile.is_public %}
+ {% if activity_user_profile.is_public or request.user.username == activity_user.username %}
- {% if activity_recent_comments %}
- <h2>Recent Comments</h2>
+
+ {% if activity_recent_comments %}
+ <h2>Recent Comments</h2>
+ {% if not activity_user_profile.is_public and request.user.username == activity_user.username %}
+ <p class="info">Your profile is not public. Only you can see this information. If you want to change this, go to your <a href="{% url 'blog:account' %}?tab=details">account settings</a>.</p>
+ {% endif %}
<ul>
{% for comment in activity_recent_comments %}
<li style="background: #1c1c1c;padding: 20px 10px 10px 10px;margin-bottom: 10px;border-radius: 8px;"