mirror of
https://github.com/friendica/friendica
synced 2025-04-24 11:50:10 +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
|
@ -32,10 +32,6 @@ function update_notes_content(App $a) {
|
|||
|
||||
$text = notes_content($a, $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 />";
|
||||
$pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue