# Federation widget ## About This is a javascript widget that shows the public timeline of an account in the Federation (Diaspora, Friendica, Hubzilla) and Mastodon. Currently onlytested with Friendica. This works for a user or a group. It is loosely based on the [ELI widget](https://github.com/blankoworld/eli) for GNU Social. ![User Timeline](federation-user.png) ![Group Timeline](federation_group.png) The server has to support [Cross-Origin Resource Sharing](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing). The .htaccess file in the server directory should include the following code for this: ``` Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET ``` ## License This program is licensed under the [WTF Public License](http://sam.zoy.org/wtfpl/COPYING 'Read more about the WTF Public License'). ## Installation Just: * copy the federation-widget.js in your website directory * add this code in your page: ```html
Timeline activity...