diff --git a/mod/tagger.php b/mod/tagger.php
index 4da4ecafb7..c602613f1f 100644
--- a/mod/tagger.php
+++ b/mod/tagger.php
@@ -44,6 +44,8 @@ function tagger_content(App $a) {
$item = $r[0];
$owner_uid = $item['uid'];
+ $owner_nick = '';
+ $blocktags = 0;
$r = q("select `nickname`,`blocktags` from user where uid = %d limit 1",
intval($owner_uid)
@@ -71,8 +73,13 @@ function tagger_content(App $a) {
$post_type = (($item['resource-id']) ? L10n::t('photo') : L10n::t('status'));
$targettype = (($item['resource-id']) ? ACTIVITY_OBJ_IMAGE : ACTIVITY_OBJ_NOTE );
- $link = xmlify('' . "\n") ;
+ if ($owner_nick) {
+ $href = System::baseUrl() . '/display/' . $owner_nick . '/' . $item['id'];
+ } else {
+ $href = System::baseUrl() . '/display/' . $item['guid'];
+ }
+
+ $link = xmlify('' . "\n") ;
$body = xmlify($item['body']);