gnu-social/plugins/LinkPreview
Diogo Cordeiro 1049080df5 [CORE] Move public resources to a /public directory
Advantages:
* Increases security by preventing direct access to file/
* We are careful and have a defined('GNUSOCIAL') || die() to prevent
  direct access to GS files, but we may miss one or a vendor/extlib may
  not be as careful
* Improves directory structure - It's more natural to physically
  separate what is public from what are GNU social resources
2019-08-03 17:47:25 +01:00
..
actions Update handle() method on Action subclasses. 2016-06-01 02:26:44 +00:00
locale [TRANSLATION] Update Plugin POs 2019-06-09 16:10:03 +01:00
LinkPreviewPlugin.php [VersionBump] 1.19.0, fairly late 2019-06-07 15:02:08 +01:00
Makefile Makefile to compress LinkPreview's js 2010-12-22 15:04:50 -08:00
README Add plugin READMEs 2016-02-08 17:48:37 +00:00

The LinkPreview plugin adds a UI for previewing thumbnails from links.

Note: This plugin depends on the "Oembed" plugin.

Installation
============
add "addPlugin('LinkPreview');"
to the bottom of your config.php

Settings
========
process_links: Whether to process links or not
thumbwidth: The width of the link preview
thumbheight: The height of the link preview

Example
=======
addPlugin('Oembed'); // Dependency
$config['attachments']['process_links'] = true;
$config['attachments']['thumbwidth'] = 42;
$config['attachments']['thumbheight'] = 42;
addPlugin('LinkPreview');