mirror of
https://github.com/friendica/friendica
synced 2025-04-27 15:50:12 +00:00
fix scroll position in stream while ajax update
This commit is contained in:
parent
7966c48e75
commit
a2fc1be187
10 changed files with 142 additions and 48 deletions
|
@ -19,9 +19,6 @@ function update_display_content(App $a)
|
|||
echo "<section>";
|
||||
|
||||
$text = display_content($a, true, $profile_uid);
|
||||
$pattern = "/<img([^>]*) src=\"([^\"]*)\"/";
|
||||
$replace = "<img\${1} dst=\"\${2}\"";
|
||||
$text = preg_replace($pattern, $replace, $text);
|
||||
|
||||
if (PConfig::get(local_user(), "system", "bandwidth_saver")) {
|
||||
$replace = "<br />" . L10n::t("[Embedded content - reload page to view]") . "<br />";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue