aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/views/default/profile/listing.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile/views/default/profile/listing.php')
-rw-r--r--mod/profile/views/default/profile/listing.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/mod/profile/views/default/profile/listing.php b/mod/profile/views/default/profile/listing.php
index 87ccdb5ee..eb991be07 100644
--- a/mod/profile/views/default/profile/listing.php
+++ b/mod/profile/views/default/profile/listing.php
@@ -29,8 +29,15 @@
'size' => 'small',
)
);
-
- $info .= "<p><b><a href=\"" . $vars['entity']->getUrl() . "\">" . $vars['entity']->name . "</a></b></p>";
+
+ // Simple XFN
+ $rel = "";
+ if (page_owner() == $vars['entity']->guid)
+ $rel = 'me';
+ else if (check_entity_relationship(page_owner(), 'friend', $vars['entity']->guid))
+ $rel = 'friend';
+
+ $info .= "<p><b><a href=\"" . $vars['entity']->getUrl() . "\" rel=\"$rel\">" . $vars['entity']->name . "</a></b></p>";
$location = $vars['entity']->location;
if (!empty($location)) {