]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
Consolidate common code in micro-apps custom notice type display actions.
authorBrion Vibber <brion@pobox.com>
Tue, 29 Mar 2011 23:58:15 +0000 (16:58 -0700)
committerBrion Vibber <brion@pobox.com>
Tue, 29 Mar 2011 23:58:15 +0000 (16:58 -0700)
commit20ca5027ccb30f094bc87189ef19ecdb59156137
tree62fc5da4f247869ef69d43f6a9c376e28855ad15
parent23436ad83d3039aee73799b0530921cb13221ce3
Consolidate common code in micro-apps custom notice type display actions.

The ShowNoticeAction subclasses were cut-n-pasting a lot of prepare() code from ShowNoticeAction, though the only part that's different is how we look up the notice. Broke that out to a getNotice() method, so only that needs to be copied. Avoids extra copies of permission checks and other common code in this spot.
actions/shownotice.php
plugins/Bookmark/showbookmark.php
plugins/Event/showevent.php
plugins/Event/showrsvp.php
plugins/Poll/showpoll.php