mirror of
https://github.com/friendica/friendica
synced 2025-04-23 21:50:10 +00:00
Remove "f" parameter / network page parameter cleanup
This commit is contained in:
parent
ac04ff88b8
commit
b83f328983
11 changed files with 34 additions and 75 deletions
|
@ -222,7 +222,7 @@ function string2bb(element) {
|
|||
match: /(^|\s)(\#)([^ \n]{2,})$/,
|
||||
index: 3,
|
||||
search: function(term, callback) {
|
||||
$.getJSON(baseurl + '/hashtag/' + '?f=&t=' + term)
|
||||
$.getJSON(baseurl + '/hashtag/' + '?t=' + term)
|
||||
.done(function(data) {
|
||||
callback($.map(data, function(entry) {
|
||||
// .toLowerCase() enables case-insensitive search
|
||||
|
@ -275,7 +275,7 @@ function string2bb(element) {
|
|||
tags = {
|
||||
match: /(^|\s)(\#)([^ \n]{2,})$/,
|
||||
index: 3,
|
||||
search: function(term, callback) { $.getJSON(baseurl + '/hashtag/' + '?f=&t=' + term).done(function(data) { callback($.map(data, function(entry) { return entry.text.indexOf(term) === 0 ? entry : null; })); }); },
|
||||
search: function(term, callback) { $.getJSON(baseurl + '/hashtag/' + '?t=' + term).done(function(data) { callback($.map(data, function(entry) { return entry.text.indexOf(term) === 0 ? entry : null; })); }); },
|
||||
replace: function(item) { return "$1$2" + item.text; },
|
||||
template: tag_format
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue