mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
Setting "editplain", "page" and "privacy_image_cache" as deprecated. Using new cache function in fpost and buffer.
This commit is contained in:
parent
bcdb734f0e
commit
eb707da562
5 changed files with 16 additions and 12 deletions
|
@ -1032,6 +1032,13 @@ function fbpost_fetchwall($a, $uid) {
|
|||
$oembed_data = oembed_fetch_url($item->link);
|
||||
$type = $oembed_data->type;
|
||||
$content = "[bookmark=".$item->link."]".$item->name."[/bookmark]";
|
||||
|
||||
// If a link is not only attached but also added in the body, look if it can be removed in the body.
|
||||
$removedlink = trim(str_replace($item->link, "", $_REQUEST["body"]));
|
||||
|
||||
if (($removedlink == "") OR strstr($_REQUEST["body"], $removedlink))
|
||||
$_REQUEST["body"] = $removedlink;
|
||||
|
||||
} elseif (isset($item->name))
|
||||
$content .= "[b]".$item->name."[/b]";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue