mirror of
https://github.com/friendica/friendica
synced 2025-04-27 04:30: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
|
@ -388,6 +388,10 @@ class Media
|
|||
}
|
||||
|
||||
foreach ($attachments as $attachment) {
|
||||
if (Post\Link::exists($uriid, $attachment['preview'] ?? $attachment['url'])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Only store attachments that are part of the unshared body
|
||||
if (Item::containsLink($unshared_body, $attachment['preview'] ?? $attachment['url'], $attachment['type'])) {
|
||||
self::insert($attachment);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue