summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-04-09 14:06:24 -0400
committerEvan Prodromou <evan@status.net>2010-04-09 14:06:24 -0400
commitce40425533af595fee780bb18089266a836ab828 (patch)
tree9208be1a04603f92ee044388838b7fa4500583ea
parent674b0ddaace4a478092a89b9f63eedb3c4ad63e4 (diff)
parent9cb0dab27036b237f9f325dc14c417e23fd475f7 (diff)
Merge branch 'master' of gitorious.org:statusnet/mainline
-rw-r--r--actions/foafgroup.php5
-rw-r--r--classes/Notice.php8
-rw-r--r--lib/action.php18
3 files changed, 21 insertions, 10 deletions
diff --git a/actions/foafgroup.php b/actions/foafgroup.php
index d685554ac..4db40c28b 100644
--- a/actions/foafgroup.php
+++ b/actions/foafgroup.php
@@ -56,7 +56,7 @@ class FoafGroupAction extends Action
return false;
}
- $local = Local_group::staticGet('nickname', $nickname);
+ $local = Local_group::staticGet('nickname', $this->nickname);
if (!$local) {
$this->clientError(_('No such group.'), 404);
@@ -126,7 +126,8 @@ class FoafGroupAction extends Action
while ($members->fetch()) {
$member_uri = common_local_url('userbyid', array('id'=>$members->id));
$member_details[$member_uri] = array(
- 'nickname' => $members->nickname
+ 'nickname' => $members->nickname,
+ 'is_admin' => false,
);
$this->element('member', array('rdf:resource' => $member_uri));
}
diff --git a/classes/Notice.php b/classes/Notice.php
index be3e9ca2a..b416e2ff2 100644
--- a/classes/Notice.php
+++ b/classes/Notice.php
@@ -964,11 +964,19 @@ class Notice extends Memcached_DataObject
*/
function saveKnownReplies($uris)
{
+ if (empty($uris)) {
+ return;
+ }
+ $sender = Profile::staticGet($this->profile_id);
+
foreach ($uris as $uri) {
$user = User::staticGet('uri', $uri);
if (!empty($user)) {
+ if ($user->hasBlocked($sender)) {
+ continue;
+ }
$reply = new Reply();
diff --git a/lib/action.php b/lib/action.php
index 09113a598..0fc3a0dc4 100644
--- a/lib/action.php
+++ b/lib/action.php
@@ -845,14 +845,16 @@ class Action extends HTMLOutputter // lawsuit
'width' => '80',
'height' => '15'));
$this->text(' ');
- //TODO: This is dirty: i18n
- $this->text(_('All '.common_config('site', 'name').' content and data are available under the '));
- $this->element('a', array('class' => 'license',
- 'rel' => 'external license',
- 'href' => common_config('license', 'url')),
- common_config('license', 'title'));
- $this->text(' ');
- $this->text(_('license.'));
+ // TRANS: license message in footer. %1$s is the site name, %2$s is a link to the license URL, with a licence name set in configuration.
+ $notice = _('All %1$s content and data are available under the %2$s license.');
+ $link = "<a class=\"license\" rel=\"external license\" href=\"" .
+ htmlspecialchars(common_config('license', 'url')) .
+ "\">" .
+ htmlspecialchars(common_config('license', 'title')) .
+ "</a>";
+ $this->raw(sprintf(htmlspecialchars($notice),
+ htmlspecialchars(common_config('site', 'name')),
+ $link));
$this->elementEnd('p');
break;
}