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:
zotlabs
2016-10-17 22:09:41 -07:00
parent 437aa168d1
commit 17091bd38c
4 changed files with 29 additions and 14 deletions

View File

@@ -239,6 +239,9 @@ Hooks allow plugins/addons to "hook into" the code at many points and alter the
[zrl=[baseurl]/help/hook/get_features]get_features[/zrl]
Called when get_features() is called
[zrl=[baseurl]/help/hook/get_photo]get_photo[/zrl]
Called when photo content (except for profile photos) is fetched in mod_photo
[zrl=[baseurl]/help/hook/get_profile_photo]get_profile_photo[/zrl]
Called when local profile photo content is fetched in mod_photo