Commit graph

12 commits

Author SHA1 Message Date
theopolisme 72c0bf5d52 Perform checks before thanking via API
If the user attempts to thank an anonymous
user, a bot (when $wgThanksSendToBots is not true),
or him/herself, return an error. This is consistent
with the restrictions imposed in insertThankLink().

Bug: 56954
Change-Id: I9e8ae030a8ff1cc312bf98671e593c7367ca0ea2
2013-11-24 17:41:21 -06:00
addshore 2e7c7d33d0 Split Api Module into lovely small functions
Change-Id: I77abd54a50090229c7f3a3daa239bcb185702e46
2013-11-24 23:18:15 +00:00
jenkins-bot f9bbdd02c0 Merge "Mark ApiThank as requiring write" 2013-11-23 07:57:11 +00:00
Matthew Flaschen 491ab99c33 Mark ApiThank as requiring write
Change-Id: Ic6bc0ec65ed0b39114f12a41551c25898d784110
2013-11-23 02:47:54 -05:00
jenkins-bot 084bd53382 Merge "Only allow Thanks for public revisions" 2013-10-30 17:47:04 +00:00
Kunal Mehta 05c7f89a8e Only allow Thanks for public revisions
Bug: 54100
Change-Id: Ied2846076ecf86b7045563fe5f2b0c002bd42647
2013-10-26 20:18:04 -07:00
Kunal Mehta c597db50d9 Add API help url
Change-Id: I9886163ad2492a5030059d45853b15964279362a
2013-10-26 18:56:37 -07:00
bsitu 87d966806f (bug 51303) Do not send duplicate thanks notification
Change-Id: Ie3c31e4ce155541a6aa9b6feae433742be2967e8
2013-07-14 21:18:18 -07:00
ebernhardson a4cfb9ded6 Prevent short-term duplicate thanking
Thanked revision to be stored both server side in the session and client side
in a cookie.  Thanked revisions found in either storage solution will replace
their 'thank' link with the string 'thanked'.
Bug: 46690
Change-Id: I976cd8fbf00856c67b77daeb0d0a952efb371661
2013-04-28 22:58:28 -07:00
kaldari ec71096c1a Adding logging to Thanks extension
Change-Id: I6f58924ae9ec9f581434f9f183cf8842b6142159
2013-04-09 20:54:19 -07:00
kaldari e3a4b724c1 Adding some comments for the API
Adding .jshintrc file

Change-Id: Ib15a3b3ce2c37933b62ccb112a38b1d61051ca16
2013-04-05 17:36:31 -07:00
Kaldari bc369fdf85 Initial version of Thanks extension
See https://www.mediawiki.org/wiki/Extension:Thanks

Change-Id: Ic037f1fcde0f7fa10848c2ed8e31291ad022027d
2013-03-21 11:33:50 -07:00