owncloud/core — pull request #2474 by schiesbn (2013-03-20 11:50:09+00:00)
Title: skip update if the recipient is the same user as the owner

skip update if the recipient is the same user as the owner, otherwise we run in a infinite loop for group shares.

I'm not sure if this is only a quick fix or the only possible solution (see discussion in #2299) but for now it fixes issue #2299

@MTGap @blizzz please review.