Merge remote-tracking branch 'upstream/master'
[quix0rs-gnu-social.git] / plugins / Activity / lib / joinlistitem.php
index 6e3dbcf62a6c9c63b5f7fc0c6ba2c61454714c5f..5a481f767a577c9004ce4e6d11d7d424a87da7e6 100644 (file)
@@ -46,30 +46,4 @@ if (!defined('STATUSNET')) {
  */
 class JoinListItem extends SystemListItem
 {
-    function showContent()
-    {
-        $notice = $this->nli->notice;
-        $out    = $this->nli->out;
-
-        $mem = Group_member::getKV('uri', $notice->uri);
-
-        if (!empty($mem)) {
-            $out->elementStart('div', 'join-activity');
-            $profile = $mem->getMember();
-            $group = $mem->getGroup();
-
-            // TRANS: Text for "joined list" item in activity plugin.
-            // TRANS: %1$s is a profile URL, %2$s is a profile name,
-            // TRANS: %3$s is a group home URL, %4$s is a group name.
-            $out->raw(sprintf(_m('<a href="%1$s">%2$s</a> joined the group <a href="%3$s">%4$s</a>.'),
-                                $profile->profileurl,
-                                $profile->getBestName(),
-                                $group->homeUrl(),
-                                $group->getBestName()));
-
-            $out->elementEnd('div');
-        } else {
-            parent::showContent();
-        }
-    }
 }