Add the entry poster to the email and inbox notification.
Patch by denise.
diffs (54 lines):
diff -r 95e847e2f3b8 -r e7a2222110c5 bin/upgrading/en.dat
--- a/bin/upgrading/en.dat Mon Nov 02 11:06:45 2009 +0000
+++ b/bin/upgrading/en.dat Mon Nov 02 11:13:26 2009 +0000
@@ -1747,11 +1747,11 @@ esn.month.day_oct=October [[day]]
esn.month.day_sep=September [[day]]
-esn.officialpost.html=There is <a href="[[url]]">a new announcement</a> in
[[username]]
+esn.officialpost.html2=[[poster]] made <a href="[[url]]">a new
announcement</a> in [[username]]
esn.officialpost.nosubject=[[sitenameshort]] Announcement: New [[username]]
announcement
-esn.officialpost.string=There is a new announcement in [[username]] at [[url]]
+esn.officialpost.string2=[[poster]] made a new announcement in [[username]] at
[[url]]
esn.officialpost.subject=[[sitenameshort]] Announcement: [[subject]]
diff -r 95e847e2f3b8 -r e7a2222110c5 cgi-bin/LJ/Event/OfficialPost.pm
--- a/cgi-bin/LJ/Event/OfficialPost.pm Mon Nov 02 11:06:45 2009 +0000
+++ b/cgi-bin/LJ/Event/OfficialPost.pm Mon Nov 02 11:13:26 2009 +0000
@@ -99,7 +99,7 @@ sub as_html {
return LJ::Lang::get_text(
$u->prop("browselang"),
- _construct_prefix($self) . '.html',
+ _construct_prefix($self) . '.html2',
undef,
{
siteroot => $LJ::SITEROOT,
@@ -108,6 +108,7 @@ sub as_html {
subject => $self->entry->subject_text || '',
username => $entry->journal->ljuser_display,
url => $entry->url,
+ poster => $self->entry->poster->ljuser_display,
});
}
@@ -118,7 +119,7 @@ sub as_string {
return LJ::Lang::get_text(
$u->prop("browselang"),
- _construct_prefix($self) . '.string',
+ _construct_prefix($self) . '.string2',
undef,
{
siteroot => $LJ::SITEROOT,
@@ -127,6 +128,7 @@ sub as_string {
subject => $self->entry->subject_text || '',
username => $self->entry->journal->display_username,
url => $entry->url,
+ poster => $self->entry->poster->display_username,
});
}
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog