mirror of
https://github.com/friendica/friendica
synced 2025-04-26 11:50:11 +00:00
Don't store emoji images as media but links
This commit is contained in:
parent
10038bb578
commit
42790fbc1f
3 changed files with 23 additions and 3 deletions
|
@ -36,6 +36,18 @@ use Friendica\Util\Proxy;
|
|||
*/
|
||||
class Link
|
||||
{
|
||||
/**
|
||||
* Check if the link is stored
|
||||
*
|
||||
* @param int $uri_id
|
||||
* @param string $url
|
||||
* @return bool
|
||||
*/
|
||||
public static function exists(int $uri_id, string $url)
|
||||
{
|
||||
return DBA::exists('post-link', ['uri-id' => $uri_id, 'url' => $url]);
|
||||
}
|
||||
|
||||
public static function getByLink(int $uri_id, string $url, $size = '')
|
||||
{
|
||||
if (empty($uri_id) || empty($url) || Proxy::isLocalImage($url)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue