Elgg HybridAuth already supports Mastodon authorization
From docs:
"If deleting recursively, this bypasses ownership of items contained by the entity.
That means that if the container_guid = $this->guid, the item will be deleted regardless of who owns it."
Look at this.
An example of how to do this in your class.
Developer is here.
custom_index isn't compatible with Elgg Landing Theme.
You can find a warning about this in the plugin description.
Please ask your questions on the plugin page in the future.
This error occurs when the host in your /elgg-config/settings.php is different from the host in PHP.
This is done to help prevent malicious link generation.
@Jerome Bakker, thanks for the detailed insight.
I found the solution to it by properly defining the SSL/https rewrite request in .htaccess as bellow:
#First redirect all Http request to https
#Ensure that we exclude any sub-domains
RewriteCond %{HTTP_HOST} ^(www\.)?myhotfb.com$ [NC]
RewriteCond %{HTTPS} off
RewriteRule ^ https://www.myhotfb.com%{REQUEST_URI} [NC,L,R]
#Secondly redirect all non-www to www
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [NC,L,R]
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.