Roan Kattouw
ff4a54d7f1
MentionPresentationModel: Remove pageLink from secondary links
...
It wasn't meant to be there, and flow-mention doesn't have it either.
We also don't have any other notification types with
three prioritized secondary links.
Bug: T125949
Change-Id: Icbffa185b1116b1a6beb9bb3585339fdf7e82cdd
2016-02-26 20:41:13 -05:00
Stephane Bisson
67facac67d
Force notification body on a single line
...
The approach here is to use $msg->escaped() to
remove all markup and then replace new lines
with a single space.
Bug: T128062
Change-Id: I1d5a6e57fbae9b6a441671beff1c60720b9445d5
2016-02-26 07:00:38 -05:00
jenkins-bot
cc87b9a35f
Merge "Bidi-embed formatter user names (the $1 parameter) in notification messages"
2016-02-25 18:46:02 +00:00
jenkins-bot
04522752ed
Merge "Notification: use speechBubbles icon for all talk pages"
2016-02-24 21:43:26 +00:00
Roan Kattouw
e7cd68baf1
Bidi-embed formatter user names (the $1 parameter) in notification messages
...
Bug: T127407
Change-Id: I51fdbdfd0a706f21f36513b1e8beeeddffe8bec7
2016-02-24 13:34:53 -08:00
jenkins-bot
656d6c401c
Merge "Handle null user when trying to generate a link for notifications"
2016-02-24 21:29:25 +00:00
Stephane Bisson
3e028b8b1d
Add 'Log' link to user-rights notification
...
Bug: T127249
Change-Id: I0ee20fefa2241d2858e6473bb709dce9519b82d4
2016-02-24 13:23:34 -05:00
Stephane Bisson
f1e68f9451
Handle null user when trying to generate a link for notifications
...
Bug: T127728
Change-Id: I87de2d10887216e3edf53c2972b6bf230191f0ea
2016-02-24 11:42:03 -05:00
jenkins-bot
ac952bf5e8
Merge "Add GENDER support to 'View changes'"
2016-02-23 20:45:35 +00:00
Stephane Bisson
a73d63d1a4
Echo API returns absolute URLs in notification links
...
Some notifications return relative urls in their
primary or secondary links. This change makes those
urls absolute so they point to the right wiki
when viewed from another wiki (cross-wiki notifications).
Bug: T125738
Bug: T127697
Change-Id: Ib65337430eb2484f9491668a9998deef70589fb1
2016-02-23 17:54:26 +00:00
Matthias Mullie
4715b55471
Add GENDER support to 'View changes'
...
Change-Id: I42b8b253b8b865c081ba1aec62848afadd21e0f4
2016-02-23 17:56:16 +01:00
Stephane Bisson
860404eded
Notification: use speechBubbles icon for all talk pages
...
Bug: T56433
Change-Id: I14e1af9dda1c08e1526fde59072f93189ab0b0d0
2016-02-23 06:53:55 -05:00
Matthias Mullie
3979919087
Display human-readable wiki names for cross-wiki notifications
...
Bug: T121936
Change-Id: Ic14fe65f4ecc6db94fc6774ca0c39d1c2a47db9d
2016-02-22 20:09:53 +01:00
Matthew Flaschen
4b316438a5
Fix 'Undefined index' PHP warning so XDebug doesn't complain
...
Change-Id: Id8f8113bcdc454d5df09a20175c7698791b71fba
2016-02-19 05:09:45 +00:00
Stephane Bisson
74879c39fb
Truncate secondary link labels
...
Bug: T121822
Change-Id: I3e36a6cd4bc8da96879158e1d7b65fd3a1d582fb
2016-02-18 06:55:36 -05:00
jenkins-bot
d1830041af
Merge "Include reason in user-rights notification body"
2016-02-16 17:59:12 +00:00
Stephane Bisson
dff7e8072b
Include reason in user-rights notification body
...
Bug: T126277
Depends-On: Ib9bb28a7a77602e3e729fd0bf13ab8259e15b006
Change-Id: I4941c4ba16ee95798767d858792090609b47b4e4
2016-02-16 01:51:07 +00:00
Stephane Bisson
98861d059a
Truncate section names to 50 char
...
Bug: T121822
Change-Id: I6220fdfb2ad20cfe9935895a2f5a16727d6cbc01
2016-02-15 15:59:00 -05:00
jenkins-bot
33ee3ebf80
Merge "Have EventPresentationModel implement JsonSerializable"
2016-02-13 07:23:50 +00:00
jenkins-bot
5019802f29
Merge "Introduce congratulatory notifications for reaching edit thresholds"
2016-02-12 22:19:04 +00:00
Kunal Mehta
7f981670a3
Have EventPresentationModel implement JsonSerializable
...
Change-Id: I25a9ba9371ccf6c246de21fbb2c880441e051090
2016-02-12 14:15:23 -08:00
James D. Forrester
5031539327
Introduce congratulatory notifications for reaching edit thresholds
...
Bug: T124003
Change-Id: I21c6570e178fd03d969a516bdb31a6da9735d242
2016-02-12 14:11:21 -08:00
Stephane Bisson
09928f1ed2
Add email body preview to emailuser notification
...
when the subject line is left with the default
generated value, we take the begining of the
email content to add a preview in the
notification.
Bug: T121831
Change-Id: Ib7c646f6709c7100ef51186f84fe14807d6a211a
2016-02-12 14:50:17 -05:00
jenkins-bot
202afb8227
Merge "Truncate usernames to 20 char in notifications"
2016-02-11 19:02:21 +00:00
Stephane Bisson
442f812774
Add subject to email notification body
...
Bug: T121831
Change-Id: Ib1a9212202d2c84de8d968d043f65e24b2d94fae
2016-02-10 12:34:26 -05:00
Stephane Bisson
961968ff56
Truncate usernames to 20 char in notifications
...
Bug: T121822
Change-Id: Ie9650b5c72f2224dc6d26b3bfc45f29cbbd23397
2016-02-09 13:46:39 -05:00
jenkins-bot
ccebb42186
Merge "Get rid of old flyout formatter code"
2016-02-09 18:34:36 +00:00
jenkins-bot
f9b8202f4f
Merge "Use current HTML formatter (for special page) instead of previous"
2016-02-09 18:22:33 +00:00
Stephane Bisson
f7b0637d59
Fix 'user-rights' notification messages
...
Bug: T121661
Change-Id: I5b73001f2f748a39c3b28f6b571f076a51f8f785
2016-02-08 08:45:10 -05:00
Matthias Mullie
9fe71a1182
Get rid of old flyout formatter code
...
This code is completely useless:
* for format=flyout, the new EchoFlyoutFormatter.php will be run
* and even that one has already been deprecated as it was replaced
by format=model (flyout html is now built in client)
Change-Id: Iea23abb66397ecc4efb575fe33fdbedc5b4e0f70
2016-02-05 06:56:15 +00:00
Matthias Mullie
1be7039660
Use current HTML formatter (for special page) instead of previous
...
The existing "html" formatter was used for the special page & is now
superseeded by the new-style "special" formatter. Previous "html"
notifications are no longer used & could even be broken.
Instead of keeping the old "html" formatter around, we should let it
use the new formatter (and eventually just kill that redundant format
in the API)
Change-Id: Ibbd40aafa9eee718b196ad62f6edc99629b263b4
2016-02-04 20:03:19 +00:00
Stephane Bisson
ffc4365b08
Make sure to use array_values for group names in user-rights notifications
...
Bug: T125279
Change-Id: I49b5fe5cf27aef5b710a5d95a064b09b08612667
2016-02-01 13:30:25 -05:00
jenkins-bot
59fc1b6f85
Merge "Add snippet to mention notification"
2016-02-01 09:10:05 +00:00
Stephane Bisson
a4b91ebef8
Gender support for viewing user in user-rights notifications
...
Bug: T125251
Change-Id: Iadd341a3bb555c91152528bbddaf2a660b8dcc77
2016-01-29 16:07:39 -05:00
jenkins-bot
44ae5aefae
Merge "Support GENDER in mention-on-user-talk messages"
2016-01-29 16:47:23 +00:00
jenkins-bot
e750abdf43
Merge "Fix lego messages in 'user-rights' notification"
2016-01-29 16:30:06 +00:00
Stephane Bisson
475d724b45
Support GENDER in mention-on-user-talk messages
...
Also refactored getHeaderMessageKey for grep-ability
Bug: T56433
Change-Id: Ia844c3e0008c7ed24dcc093e3eab41decbcaeb2a
2016-01-29 11:19:12 -05:00
Stephane Bisson
779b7030d9
Truncate usernames, titles and excerpts in notifications
...
Bug: T121822
Change-Id: Ia0a52926133ab7e04d7d9c2a095ef8f9d0871a49
2016-01-29 07:04:23 -05:00
Stephane Bisson
cd7edf0378
Rephrase mention notifications
...
Split mentions into 4 cases:
- Mentioned on article talk page
- Mentioned on agent's talk page
- Mentioned on another user's talk page
- Mentioned on any other page
Adjust secondary link
icon: article or talk
text: without namespace for article and article talk
Bug: T56433
Change-Id: Ibf965dad4f9cc468fdd4321b2450d6eaec0ac1d7
2016-01-29 07:04:23 -05:00
Stephane Bisson
2c7136ecb7
Fix lego messages in 'user-rights' notification
...
Bug: T121661
Change-Id: I8386429a36182dbc44b45990506a42cbeef115ad
2016-01-28 11:43:04 -05:00
Stephane Bisson
386bc86233
Add snippet to mention notification
...
Bug: T121817
Change-Id: I9a77d8ecb1b91f6a196f17777cfabf97c0b59da7
2016-01-21 10:19:14 -05:00
Roan Kattouw
119af0e09a
Make the mention notification actually link to the right section
...
getLocalURL() does not take the fragment into account.
Bug: T123847
Change-Id: I4f8b11c1693ebfcdae69f001057f5db15c11b94f
2016-01-19 09:35:26 -08:00
Stephane Bisson
9e536c91d4
Rephrase Echo 'edit-user-talk' notification
...
Bug: T123934
Change-Id: If053f9787127ca4488c51a663000a48bc717cadf
2016-01-18 15:44:18 -05:00
jenkins-bot
238097e364
Merge "Use globe icon for cross-wiki bundle"
2016-01-18 20:28:53 +00:00
jenkins-bot
18bffba313
Merge "Display revert edit summary in revert notification body"
2016-01-18 19:46:49 +00:00
Stephane Bisson
d7d70a06a1
Display revert edit summary in revert notification body
...
Only display when it's different than the pre-populated
edit summary (Undo revision 123 by User).
Bug: T121808
Change-Id: I5a00ff174fd31fdbf776a06b7b9375f63b921677
2016-01-18 10:14:15 -05:00
Matthias Mullie
e7e55d4279
EchoModelFormatter extends EchoEventFormatter
...
There was no point in letting it extend EchoFlyoutFormatter instead
of the base EchoEventFormatter. The only things in EchoFlyoutFormatter
are formatModel & getIconURL, both of which aren't being called.
Change-Id: I89511530a41976974f4d51d55379a617dfe503ec
2016-01-17 22:26:34 -08:00
Roan Kattouw
3c543215aa
Use globe icon for cross-wiki bundle
...
Bug: T123757
Change-Id: Ib97c0abb43aacba19e6b8d8a329c836e332927a2
2016-01-15 16:43:14 -08:00
Roan Kattouw
c345bef598
Add icon to "View changes" secondary links
...
Bug: T121736
Change-Id: I7dda877c26c99392c17702265380f4ea2a6e8049
2016-01-14 22:53:51 -08:00
jenkins-bot
33fe9a0038
Merge "Cross-wiki notifications integration"
2016-01-15 01:15:42 +00:00