add get_photo hook to go along with get_profile_photo hook. This allows a plugin to over-ride the permissions for cover photos or insert a different photo in place of that requested
This commit is contained in:
14
doc/hook/get_photo.bb
Normal file
14
doc/hook/get_photo.bb
Normal file
@@ -0,0 +1,14 @@
|
||||
[h2]get_photo[/h2]
|
||||
|
||||
Called when fetching the content of photos (except for profile photos) in mod_photo.
|
||||
|
||||
|
||||
Hook arguments:
|
||||
|
||||
'imgscale' => integer resolution requested
|
||||
'resource_id' => resource_id of requested photo
|
||||
'photo' => array of matching photo table rows after querying for the photo
|
||||
'allowed' => whether or not access to this resource is allowed
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user