|
@@ -9,14 +9,14 @@ def RequestContext(request, context=None):
|
|
if not context:
|
|
if not context:
|
|
context = {}
|
|
context = {}
|
|
context['fallback'] = request.path
|
|
context['fallback'] = request.path
|
|
-
|
|
|
|
|
|
+
|
|
# Find out if we ignore or follow this user
|
|
# Find out if we ignore or follow this user
|
|
context['follows'] = False
|
|
context['follows'] = False
|
|
context['ignores'] = False
|
|
context['ignores'] = False
|
|
if request.user.is_authenticated() and request.user.pk != context['profile'].pk:
|
|
if request.user.is_authenticated() and request.user.pk != context['profile'].pk:
|
|
context['follows'] = request.user.is_following(context['profile'])
|
|
context['follows'] = request.user.is_following(context['profile'])
|
|
context['ignores'] = request.user.is_ignoring(context['profile'])
|
|
context['ignores'] = request.user.is_ignoring(context['profile'])
|
|
-
|
|
|
|
|
|
+
|
|
# Find out if this user allows us to see his activity
|
|
# Find out if this user allows us to see his activity
|
|
if request.user.pk != context['profile'].pk:
|
|
if request.user.pk != context['profile'].pk:
|
|
if context['profile'].hide_activity == 2:
|
|
if context['profile'].hide_activity == 2:
|
|
@@ -44,7 +44,7 @@ def RequestContext(request, context=None):
|
|
for extension in settings.PROFILE_EXTENSIONS:
|
|
for extension in settings.PROFILE_EXTENSIONS:
|
|
profile_module = import_module(extension + '.profile')
|
|
profile_module = import_module(extension + '.profile')
|
|
try:
|
|
try:
|
|
- append_links = profile_module.register_profile_extension(request)
|
|
|
|
|
|
+ append_links = profile_module.register_profile_extension(request, context['profile'])
|
|
if append_links:
|
|
if append_links:
|
|
for link in append_links:
|
|
for link in append_links:
|
|
link = list(link)
|
|
link = list(link)
|