HomePhabricator

Perform checks before thanking via API

Authored by Theopolisme.

Description

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

Details

Committed
TheopolismeNov 24 2013, 11:41 PM
Parents
rETHA2e7c7d33d005: Split Api Module into lovely small functions
Branches
Unknown
Tags
Unknown
References
refs/changes/58/97358/7
ChangeId
I9e8ae030a8ff1cc312bf98671e593c7367ca0ea2